Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for pasting #126

Open
Abdur-rahmaanJ opened this issue Nov 8, 2024 · 15 comments
Open

Add support for pasting #126

Abdur-rahmaanJ opened this issue Nov 8, 2024 · 15 comments

Comments

@Abdur-rahmaanJ
Copy link

I cannot paste anything anywhere on the UI on Linux.

@darrenburns
Copy link
Owner

Can you paste into any other terminal apps?

@danFbach
Copy link

On a similar thread, typically I am able to paste with right click.
I'm running windows 11 terminal running powershell, connected over SSH to linux. i can however paste with ctrl+v, so not a big deal.

ability to add a keybinding for copying would be nice though. copying from a response body would be useful. I swapped my quit keybinding to ctrl+q, so an optional copy kb to ctrl+c would be nice.
thanks for the software!

@darrenburns
Copy link
Owner

darrenburns commented Nov 12, 2024

You should be able to copy from the response body by selecting some text (with the mouse or keyboard) and pressing either "y" or "c" to copy.

I'd note however that will copy to the clipboard of the machine you're SSH'd into, not your local machine.

@danFbach
Copy link

Ok. i get a not implemented exception (even after installing xsel or xclip).
using the remote system's clipboard would at least be helpful but isn't working...i'm using an almalinux server with no GUI.
is using the remote machine's clipboard a design choice?

@darrenburns
Copy link
Owner

It's not a design choice - xsel and xclip will copy to the clipboard of the host they're running on.

Some terminal emulators do allow you to copy to the machine the emulator itself is running on, but it'll need a small update to Posting to enable that. I'll aim to add support for it soon.

@Abdur-rahmaanJ
Copy link
Author

Abdur-rahmaanJ commented Nov 13, 2024

@darrenburns Thanks!

Edit: I used postman once again just because of this feature ...

@darrenburns
Copy link
Owner

@Abdur-rahmaanJ Sorry, which feature specifically?

If you cannot paste, it's likely a problem on your end as pasting is supported throughout Posting. However, to help debug, you'd need to share more info - for example: what terminal you're using and can you paste in other terminal apps?

@Abdur-rahmaanJ
Copy link
Author

Oh well that would have sorted it straightaway!

Away from PC, will do soon!

@Abdur-rahmaanJ
Copy link
Author

@darrenburns

Linux Mint
zsh with oh-my-zsh and powerlevel10k theme

@darrenburns
Copy link
Owner

Zsh is your shell, but I need to know which terminal emulator you're using to be able to help. However my suggestion would most likely be to switch to a newer emulator.

Does pasting work in nano, for example?

@darrenburns
Copy link
Owner

Closing as pasting is supported, so it's likely an environment issue.

@tmartinfr
Copy link

@darrenburns I'm using gnome terminal and am able to paste my primary X selection to other terminal apps (vim, mutt, etc), using a middle click. But not in Posting (2.3.0). Is there anything I can do to help troubleshoot my issue ?

@darrenburns darrenburns reopened this Nov 29, 2024
@darrenburns
Copy link
Owner

Thanks @tmartinfr - I'll look into it this weekend. Might be something to do with the new curl importing feature which captures the paste event.

@tmartinfr
Copy link

Actually it works using Shift+Insert. But not with middle click because Posting seems to intercept all mouse interactions.

@darrenburns
Copy link
Owner

Oh interesting. I might be able to do something with that - you're not the first to hit this confusion. Will let you know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants