-
-
Notifications
You must be signed in to change notification settings - Fork 964
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
Drag&drop URL to kitty #2441
Comments
I dont understand. You are asking for the ability to drag and drop |
For example sometimes I am installing packages on Fedora/CentOS from koji. I should open this url: |
fyi this already works on macOS. ofc it would be nice if this also worked on Linux. |
yeah you dont need to right click, etc. Just select the url and then |
How I can select an URL in firefox? If I click it, then it's opened directly. Unable to select URL in browser, I only can copy address link by right-clicking and selecting copy URL ... :-( |
How are you selecting it for drag and drop? And the usul way is to start |
URL is not displayed on page, unable to select it. Firefox on drag of a href element will drag it's URL (href link), not selected text below. |
start the click. not start the lick, typo. If the URL is not displayed then obviously it wont work. |
How I can start the click but do not click? |
It took me a bit to understand that you mean a link where the text isn't the url itself. It would have been clearer if the link you posted here on github didn't contain the url in the text. So, what you mean is that with this link, you would have to right click to be able to copy it, while if you could drag it, right clicking wouldn't be necessary. |
well that's a bug in firefox. It is producing a drag and drop event |
It doesn't work with chrome either for me. Though, for me it doesn't work with any other terminals either (I tried xterm, urxvt, alacritty and termite). But it works between chrome and firefox. |
Any chance to support text/x-moz-url and _NETSCAPE_URL in kitty? Looks like all other terminals supports this. Curious, that this works in macos, as mentioned in comment #3. |
Your patch is working well. Thank you very much. |
One more thing. As I described in issue description, it would be nice to have configurable dropping/pasting in terminal. For example drag&dropping multiple URLs serially requires to add space after each paste. Is it possible to configure this or to write kitten to do this? For example if URL starts with http:// or https://, then an space after it is a good idea. Some better terminals already implement this. |
seems like a bad idea to me. How is kitty to know what trailing character |
Should be configurable, what character should be used. But mostly one space is better than nothing. Yes, I can type a space manually, but then this procedure should be used:
4th step can be sometimes skipped, if URL is still visible, but not always. At least it's possible to extend dropping in kittens? |
On Thu, Mar 19, 2020 at 12:52:19AM -0700, ondrejj wrote:
Should be configurable, what character should be used. But mostly one space is better than nothing.
And then if you are pasting into a context that requires a trailing
quote, instead of a trailing space, it means you have to erase the space.
Yes, I can type a space manually, but then this procedure should be used:
1. drag&drop url from firefox to kitty
2. switch to kitty by clicking on it
Use focus follows mouse and you dont need that.
3. press space
4. switch to firefox again
Again, use focus follows mouse.
4th step can be sometimes skipped, if URL is still visible, but not always.
When a space is added, then it's only one step.
That's assuming space is the correct character.
At least it's possible to extend dropping in kittens?
Can I map some commands to drop events?
No, it is not.
|
Please, allow dropping URL from browser to kitty.
In most cases I need to download some files from browser to a remote ssh session. It's too complicated to download them to local machine and then send to server. It's easier to drag&drop them to terminal's ssh session.
In other terminals I can just type "wget " command and then drag&drop multiple URLs to this command.
It would be nice to configure, how this URL will look in terminal, for example add one space at end or send it in apostrophes or quotation marks.
Currently it's possible to copy URL from browser and paste it to kitty terminal, but doing this for multiple URLs takes too long time.
The text was updated successfully, but these errors were encountered: