2017-06-14 23:08 GMT+03:00 Bram Moolenaar <[email protected]>:
>
> Anishane wrote:
>
>> If ':cs find' command was called with a '!', e.g.
>> :cs! find ......
>> and cscopequickfix option was appropriately set, vim will not jump to the
>> first result in the quickfix window.
>> It will only list the results in the quickfix window.
>>
>> Automatically jumping to the first result is disturbing to the user. I
>> would rather have an option where we just present the user with a list of
>> result and the user then chooses from the list.
>>
>> Since it is optional (!), the existing behavior of the command will remain
>> unchanged.
>
> Using ! for this is quite unexpected. I would expect it to abandon the
> current buffer, even when there are changes.

This is the behaviour of some plugins. And this is the behaviour of
:grep (but not :vimgrep for some reason). I think that plugins in
question (e.g. ag.vim, AFAIR ack.vim as well) simply follow :grep
behaviour because this is what they aim to replace.

Would not say that this is consistent with the rest of VimL though.

>
> Also, it only applies when 'cscopequickfix' was set. How about adding
> something there to not jump to the first result?
>
> Also, there is the ":lcscope" command, to use the location list instead
> of the quickfix list. Using another command perhaps?
>
> Or perhaps use something else than "find".
>
> I don't use cscope, thus I don't have much of a preference.
>
> --
> Have you heard about the new Beowulf cluster? It's so fast, it executes
> an infinite loop in 6 seconds.
>
> /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
> /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> \\\ an exciting new programming language -- http://www.Zimbu.org ///
> \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
>
> --
> --
> You received this message from the "vim_dev" 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_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui