Skip to content
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

Preview file #114

Closed
mollerhoj opened this issue Sep 8, 2014 · 2 comments
Closed

Preview file #114

mollerhoj opened this issue Sep 8, 2014 · 2 comments

Comments

@mollerhoj
Copy link

I've been using this plugin for a while now. It has always annoyed me that I cannot preview a file without closing the command-t window.

Say I want to look around in my controllers/accounts directory. I start :CommandT and type con/acc/. I can currently see all files in the folder. Now, if I want to view each file, will have to choose one, and repeat the procedure.

Would it be possible to implement A) a preview file command or B) a command to open Command-t with the same search as the previous one (in this case, open Command-t with the 'con/acc/' already typed in the prompt.?

@wincent
Copy link
Owner

wincent commented Sep 15, 2014

Thanks for the feature request @mollerhoj and sorry for the delay in replying (I've been overseas).

It would certainly be possible and perhaps useful to implement a preview feature, although there are a lot of UI questions that would need to be decided in doing so. For the specific use case that you mention here (exploring a directory), I actually use NERDTree, which feels like the right tool for the job.

For now, a workaround for you might be to use the <c-q> binding when looking at the results, which puts the current results in Vim's "quickfix" listing, and from there you can jump around the files with built-in Vim commands (:cw to show the listing, :cn to go to the next entry in the list, :cp to go to the previous, etc).

@mollerhoj
Copy link
Author

Thanks for the answer! No need to implement anything, <c-q> seems to fit the use case perfectly!

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

No branches or pull requests

2 participants