8000 Add PyCharm-like open resource dialog to quickly open files · Issue #623 · pyscripter/pyscripter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add PyCharm-like open resource dialog to quickly open files #623

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
GoogleCodeExporter opened this issue Aug 24, 2015 · 5 comments
Open

Comments

@GoogleCodeExporter
Copy link
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
0