You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the only way to quickly open a file in PyScripter is to look for it
on the project tab and double click it with your mouse. This works well when
there are not many files, but when your project is big, with many files, it can
be quite slow and cumbersome. It would be great to have a better alternative
that scaled better with the number of files in your project.
A good solution would be to replicate PyCharm's "Open Resource" dialog. This is
a dialog which can be used to look for files whose filename matches some text.
Using this dialog you can quickly find and open any file on your project.
Many other editors have similar functionality. For example Eclipse has it as
well (and uses the same keyboard shortcut as PyCharm, Ctrl+Shift+r).
Perhaps the gold standard for this feature is TextMate, which I believe was the
first one to introduce this type of functionality (Texmate used Ctrl+T as the
shortcut for this feature, and this was copied by most other editors except
Eclipse). Examples of editors that copied this feature from TextMate are
SublimeText and VIM (through several plugins, such as Command-T and
FuzzyFinderTextMate).
The way this feature usually works is that you type the corresponding keyboard
shortcut (e.g. Ctrl-T) and you get a modal dialog with an editbox. You can then
start typing any part of the name of the file that you want to open, and you
get a list of files matching the text that you typed (usually using glob
syntax). You can hit ENTER at any time, which opens the topmost file in the
list of matches. You can also use the up and down arrows to select which file
to open, followed by ENTER to actually open it.
Some editors take this concept further, and let you also select the line or
function that you want to go to in the selected file. This is usually done by
adding "@" after the filename, followed by the line number or the function name
that you want to go to. For example, typing "myfi@123" (without the quotes)
would open the file "myfile.py" (assuming there were no other files starting
with "myfi") and place the cursor on the line 123. Typing "*opener" would show
a list of the files containing "opener", typing "*opener@_init" and hitting
enter would open the first file whose name contained "opener" and place the
cursor at the first function called "_init".
This is definitely the feature I miss the most from PyCharm when I use
PyScripter, so I hope it can be implemented!
Original issue reported on code.google.com by angel.ez...@gmail.com on 17 Mar 2012 at 8:53
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
angel.ez...@gmail.com
on 17 Mar 2012 at 8:53The text was updated successfully, but these errors were encountered: