Re: allow to vimgrep current buffer

2016-02-10 Fir de Conversatie Christian Brabandt
Here is an updated patch. Changes include a new-style test and adapted to the recent source style changes. Best, Christian -- Niederträchtigkeit der mittlern Zeit bis ins sechzehnte Jahrhundert, treffliche Menschen wie Aristoteles, Hippokrates durch dumme Märchen lächerlich zu machen.

Re: allow to vimgrep current buffer

2014-12-06 Fir de Conversatie Christian Brabandt
Here is updated patch for 7.4.519 Best, Christian -- Das Fernsehen macht aus dem Kreis der Familie einen Halbkreis. -- Robert Lembke -- -- 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

Re: allow to vimgrep current buffer

2014-12-06 Fir de Conversatie Bram Moolenaar
Christian wrote: Here is updated patch for 7.4.519 Thanks, I'll update the todo list entry. -- BLACK KNIGHT: I'm invincible! ARTHUR: You're a looney. Monty Python and the Holy Grail PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- b...@moolenaar.net --

Re: allow to vimgrep current buffer

2014-11-12 Fir de Conversatie Christian Brabandt
Hi Bram! On Fr, 07 Nov 2014, Bram Moolenaar wrote: Okay. So here is a patch, implementing the :bvimgrep and :bvimgrepadd commands. Great, thanks. I think this deserves a test. Should not be too difficult, since it's grepping in specific buffers. Here is an updated patch that

Re: allow to vimgrep current buffer

2014-11-12 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: Hi Bram! On Fr, 07 Nov 2014, Bram Moolenaar wrote: Okay. So here is a patch, implementing the :bvimgrep and :bvimgrepadd commands. Great, thanks. I think this deserves a test. Should not be too difficult, since it's grepping in specific buffers.

Re: allow to vimgrep current buffer

2014-11-07 Fir de Conversatie Christian Brabandt
On Di, 28 Okt 2014, Ingo Karkat wrote: Well, then perhaps a separate :bvimgrep[add] set of commands would be better than overloading the existing commands: :bvimgrep[!] /{pattern}/[g][j] [bufname] :bvimgrep[!] /{pattern}/[g][j] N1 N2 ... Okay. So here is a patch, implementing the :bvimgrep

Re: allow to vimgrep current buffer

2014-11-07 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: On Di, 28 Okt 2014, Ingo Karkat wrote: Well, then perhaps a separate :bvimgrep[add] set of commands would be better than overloading the existing commands: :bvimgrep[!] /{pattern}/[g][j] [bufname] :bvimgrep[!] /{pattern}/[g][j] N1 N2 ... Okay. So here

Re: allow to vimgrep current buffer

2014-11-04 Fir de Conversatie Christian Wellenbrock
Similarly, I feel like :`,` would be consistent with with how ' is linewise and ` is character wise (single quote vs backtick). On Monday, November 3, 2014 9:25:21 PM UTC+1, Bram Moolenaar wrote: Christian Brabandt wrote: On Mi, 29 Okt 2014, Bram Moolenaar wrote: It could also be a

Re: allow to vimgrep current buffer

2014-11-04 Fir de Conversatie Christian Brabandt
On Mo, 03 Nov 2014, Bram Moolenaar wrote: Nevertheless, in some cases it could still be useful. E.g. specifying the first 100 lines could work on multiple buffers. And when selecting a column from position 8 to the end of the line, for all lines, this could also work in other buffers. E.g.,

Re: allow to vimgrep current buffer

2014-11-04 Fir de Conversatie Bram Moolenaar
Christian Wellenbrock wrote: Similarly, I feel like :`,` would be consistent with with how ' is linewise and ` is character wise (single quote vs backtick). True, but when you press : we can only either use ' or `. That could depend on being on Visual block mode, but many commands that

Re: allow to vimgrep current buffer

2014-11-03 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: On Mi, 29 Okt 2014, Bram Moolenaar wrote: It could also be a solution for something that doesn't work yet: Search within a Visual block. Since this is going to be a new command, we can make :',' respect the Visual mode, including block. So you could select

Re: allow to vimgrep current buffer

2014-11-02 Fir de Conversatie Christian Brabandt
Hi Bram! On Mi, 29 Okt 2014, Bram Moolenaar wrote: It could also be a solution for something that doesn't work yet: Search within a Visual block. Since this is going to be a new command, we can make :',' respect the Visual mode, including block. So you could select a block and type

Re: allow to vimgrep current buffer

2014-10-31 Fir de Conversatie Bram Moolenaar
Zyx wrote: On October 29, 2014 10:54:38 PM EAT, Bram Moolenaar b...@moolenaar.net wrote: Christian wrote: On Di, 28 Okt 2014, Ingo Karkat wrote: Well, then perhaps a separate :bvimgrep[add] set of commands would be better than overloading the existing commands:

Re: allow to vimgrep current buffer

2014-10-31 Fir de Conversatie Ingo Karkat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 31-Oct-2014 12:42 +0100, Bram Moolenaar wrote: Zyx wrote: On October 29, 2014 10:54:38 PM EAT, Bram Moolenaar b...@moolenaar.net wrote: Christian wrote: On Di, 28 Okt 2014, Ingo Karkat wrote: Well, then perhaps a separate

Re: allow to vimgrep current buffer

2014-10-30 Fir de Conversatie Павлов Николай Александрович
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On October 29, 2014 10:54:38 PM EAT, Bram Moolenaar b...@moolenaar.net wrote: Christian wrote: On Di, 28 Okt 2014, Ingo Karkat wrote: Well, then perhaps a separate :bvimgrep[add] set of commands would be better than overloading the existing

Re: allow to vimgrep current buffer

2014-10-29 Fir de Conversatie Bram Moolenaar
Christian wrote: On Di, 28 Okt 2014, Ingo Karkat wrote: Well, then perhaps a separate :bvimgrep[add] set of commands would be better than overloading the existing commands: :bvimgrep[!] /{pattern}/[g][j] [bufname] :N,Mbvimgrep[!] /{pattern}/[g][j] :bvimgrep[!] /{pattern}/[g][j] N1

Re: [patch] allow to vimgrep current buffer

2014-10-28 Fir de Conversatie Christian Brabandt
Am 2014-10-27 23:08, schrieb Bee: On Monday, October 27, 2014 1:06:12 PM UTC-7, Christian Brabandt wrote: Bram, here is a patch, that allows to use :vimgrep /foobar/ to search only the current buffer. You might want to argue this is already possible just use '%' as the filename, but that does

Re: [patch] allow to vimgrep current buffer

2014-10-28 Fir de Conversatie James McCoy
On Oct 28, 2014 2:40 AM, Christian Brabandt cbli...@256bit.org wrote: Am 2014-10-27 23:08, schrieb Bee: Just curious... How is that different from simply using `/` ? Is this a `just in case` scenario? I find it convenient to have all search results in the quickfix buffer. It'd be even

Re: [patch] allow to vimgrep current buffer

2014-10-28 Fir de Conversatie Christian Brabandt
Am 2014-10-28 12:04, schrieb James McCoy: On Oct 28, 2014 2:40 AM, Christian Brabandt cbli...@256bit.org wrote: Am 2014-10-27 23:08, schrieb Bee: Just curious... How is that different from simply using `/` ? Is this a `just in case` scenario? I find it convenient to have all

Re: [patch] allow to vimgrep current buffer

2014-10-28 Fir de Conversatie Павлов Николай Александрович
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On October 28, 2014 3:22:58 PM EAT, Christian Brabandt cbli...@256bit.org wrote: Am 2014-10-28 12:04, schrieb James McCoy: On Oct 28, 2014 2:40 AM, Christian Brabandt cbli...@256bit.org wrote: Am 2014-10-27 23:08, schrieb Bee: Just

Re: allow to vimgrep current buffer

2014-10-28 Fir de Conversatie Ingo Karkat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28-Oct-2014 15:55 +0100, Павлов Николай Александрович wrote: On 28-Oct-2014 15:55, Павлов Николай Александрович wrote: On October 28, 2014 3:22:58 PM EAT, Christian Brabandt cbli...@256bit.org wrote: Am 2014-10-28 12:04, schrieb James McCoy: On

Re: allow to vimgrep current buffer

2014-10-28 Fir de Conversatie Christian Brabandt
On Di, 28 Okt 2014, Ingo Karkat wrote: Well, then perhaps a separate :bvimgrep[add] set of commands would be better than overloading the existing commands: :bvimgrep[!] /{pattern}/[g][j] [bufname] :N,Mbvimgrep[!] /{pattern}/[g][j] :bvimgrep[!] /{pattern}/[g][j] N1 N2 ... Sounds useful.

[patch] allow to vimgrep current buffer

2014-10-27 Fir de Conversatie Christian Brabandt
Bram, here is a patch, that allows to use :vimgrep /foobar/ to search only the current buffer. You might want to argue this is already possible just use '%' as the filename, but that does not work, if the current buffer does not have a name yet. Then vimgrep complains about not being able to

Re: [patch] allow to vimgrep current buffer

2014-10-27 Fir de Conversatie Bee
On Monday, October 27, 2014 1:06:12 PM UTC-7, Christian Brabandt wrote: Bram, here is a patch, that allows to use :vimgrep /foobar/ to search only the current buffer. You might want to argue this is already possible just use '%' as the filename, but that does not work, if the current