Merge lp:~schplurtz/terminator/cmf into lp:terminator/trunk
Status: | Merged |
---|---|
Merged at revision: | 1575 |
Proposed branch: | lp:~schplurtz/terminator/cmf |
Merge into: | lp:terminator/trunk |
Diff against target: |
29 lines (+13/-4) 1 file modified
terminatorlib/terminal.py (+13/-4) |
To merge this branch: | bzr merge lp:~schplurtz/terminator/cmf |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Terminator | Pending | ||
Review via email: mp+254356@code.launchpad.net |
Description of the change
Hi
I found some problems with file drag and drop in terminator. This merge request fixes them.
Dropping multiple files from filemanager into terminator does not work at all :
when multiple files are dragged from a file manager and dropped in terminator, their filenames
are sent to the terminal as a single sh string enclosed in ' '. More exactly, their file://
URL are sent to the terminal, except for the first filename where file:// is stripped.
Current quoting that just surrounds filenames with ' can't handle filename that contain '.
The solution is: surround filename with '. and then, if there are ' in filename, for each
of them, close the string with a ', add \', and reopen the string with '. example :
that's true! -> 'that'\''s true!' which is a valid sh string
It also fixes LP#1311481 .
Regards,
Schplurtz
Thanks for the contribution.