Marc Weber <marco-oweber@gmx.de> wrote, on mer 12 jun 15:01 :
> Excerpts from Davido's message of Wed Jun 12 14:49:11 +0200 2013:
> > It looks fine, I shall see if it can be adapted for interactive menu
> > like with :browse
> How is :browse related to a pager?
>
> Talk about the use case you want to optimise, such as "opening a file"
> and we can help you to find the fastest way.
>
> Marc Weber
When you enter :
:browse oldfiles
you get a list of files. You can then select the file you want to edit
by entering the corresponding number. Fine, unless you have a lot of
files and many pages to browse. The "more prompt" of vim appears then,
but you can't make any search in the output stream.
It becomes easier with the TBrowseOutput command. Once the file selected
and inserted in the ex command-line, all you have to do is replacing
the beginning of the line, say :
:25: ~/source/edit/vim/README_extra.txt
so that it becomes :
:e ~/source/edit/vim/README_extra.txt (and <cr>)
I'll look into the code to see if that change can be made and validated
automatically.
A more generic approach would be to feed the input of the initial
vim command with the adequate value (in this case, the number of the
selected entry, ie 25). Then, it would also work for :
:tselect /pattern
z=
...
--
Regards,
Davido
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Wednesday, June 12, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment