Page 1 of 1

Quick Open File: auto-use selected text as filename

Posted: Tue Mar 15, 2005 1:51 am
by jumpfroggy
I just (accidentally) discovered the Quick Open File command (Control+Shift+O). It's so useful, faster than using the File->Open (Control+O) for some cases.

It'd be great if it automatically used whatever is selected in the textfile as the default filename. That way if you had this:

Code: Select all

INCLUDE somefile.txt
You could just select "somefile.txt", hit Control+Shift+O, then enter and it'd automatically open that file. I can achieve the same thing now with a copy paste, but having it auto-populate would be very convenient.

BTW, tip for users: there's a "search subfolders" checkbox to automatically find the file you're looking for even if it's in a subfolder. If you're already in a subfolder and need to search a parent, just use "../" for example:

You're editing /site/admin/file.txt, which includes /site/include/common.txt.
Hit Control+Shift+O, type ../common.txt, check "Search Subfolders". It'll search /site/ and all subfolders. Nifty, eh?

Any comments on this feature, and my proposed change?

Posted: Fri Apr 15, 2005 3:24 pm
by woho
Hi
an when there is no text selected, the QuickOpen Textbox should contain the path of the current file (that is also returned by $File in the tool macros)
example see
http://www.textpad.info/forum/viewtopic.php?t=6356