Hi,
maybe this is a general issue.
I'm working a lot with bash/perl scripts. Sometimes I would like to drag'n'drop a file from the Finder or from the Project Drawer to my current document to only insert the relative/absolute file path plus name. Up to now it is "only" possible to insert the content of that file which is very useful. How about to use SHIFT drag'n'drop to insert the relative file path and OPT drag'n'drop to insert the absolute file path. Of course, the drag'n'drop commands specified in bundles come first.
The only solution I found is to generate a drag'n'drop command, File Types: *, Scope: empty, and handle the insertion stuff by myself.
--Hans
On 25 Mar 2008, at 10:52, Hans-Joerg Bibiko wrote:
[...] How about to use SHIFT drag'n'drop to insert the relative file path and OPT drag'n'drop to insert the absolute file path. Of course, the drag'n'drop commands specified in bundles come first.
Coincidentally I recently added the following to the 1.x code base:
[NEW] Holding down the option modifier key while dragging files to the text area inserts the path to the file rather than the content of the file (except when a drag command is setup for the file type in the current scope).
I haven’t gotten around to put out a new edge build, I have a short list of things I want to do with 1.x for that to happen, but my mind is deeply buried in the 2.0 code base… :)
On 25 Mar 2008, at 12:43, Allan Odgaard wrote:
On 25 Mar 2008, at 10:52, Hans-Joerg Bibiko wrote:
[...] How about to use SHIFT drag'n'drop to insert the relative file path and OPT drag'n'drop to insert the absolute file path. Of course, the drag'n'drop commands specified in bundles come first.
Coincidentally I recently added the following to the 1.x code base:
[NEW] Holding down the option modifier key while dragging files to the text area inserts the path to the file rather than the content of the file (except when a drag command is setup for the file type in the current scope).
Thanks, I see ;)
I haven’t gotten around to put out a new edge build, I have a short list of things I want to do with 1.x for that to happen, but my mind is deeply buried in the 2.0 code base… :)
Keep going on! ;)
--Hans