LilyTerm icon indicating copy to clipboard operation
LilyTerm copied to clipboard

Require drag'n'drop

Open m13253 opened this issue 12 years ago • 3 comments

With many other terminal emulators, I can drag a file from my file manager into the terminal instead of typing the whole filename. However, this feature is not available in LilyTerm.

I hope that this can be implemented.

m13253 avatar May 01 '13 02:05 m13253

I think this depends on GTK right? When you drag a widget into another widget, events get triggered.

I am not sure which drag and drop event it was, I remember I used to play with ruby-gnome bindings and got it to work ~4 years ago. There is possibly a simplified API for doing so, as I am sure this is extensively used in Gnome.

ghost avatar Jun 04 '13 16:06 ghost

hmm... I'll think about it. Thanks for this idea!

Tetralet avatar Jun 05 '13 10:06 Tetralet

Comment: File names should be correctly escaped. And I suggest a useful and strong escaping rule.

The rule is (the following rule is how gnome-terminal does):

  1. Replace ' (apostrophe or called single-quote) with '\''.
  2. If there are two (or more) ''s, replace them with '\'\'' instead (or more).
  3. Wrap the whole string with a leading ' and a following ' and a following space. (The extra space is useful so that the user can immediately continue typing.)

m13253 avatar Jun 05 '13 12:06 m13253