Re: [Fish-users] Completion problem with regexp and string concatenation

2019-03-06 Thread SanskritFritz
On Wed, Mar 6, 2019 at 10:41 PM Kurtis Rader wrote: > > On Wed, Mar 6, 2019 at 1:29 PM SanskritFritz wrote: >> >> Hi and thanks for your answer. >> Indeed this way it works, but I don't understand why, because when I >> test that expression this works: >> string match --regex ' diff .*::[^ ]+

Re: [Fish-users] Completion problem with regexp and string concatenation

2019-03-06 Thread Kurtis Rader
On Wed, Mar 6, 2019 at 1:29 PM SanskritFritz wrote: > Hi and thanks for your answer. > Indeed this way it works, but I don't understand why, because when I > test that expression this works: > string match --regex ' diff .*::[^ ]+ 'aaa'$' "borg diff ::aaa aaa" > and this doesn't because

Re: [Fish-users] Completion problem with regexp and string concatenation

2019-03-06 Thread SanskritFritz
On Wed, Mar 6, 2019 at 3:05 PM David Adam wrote: > > On Sun, 3 Mar 2019, SanskritFritz wrote: > > I'm writing completions for borg. > > There is a special case where I want to achieve the following: > > Fish should give a second archive list when the following scenario is > > present (the cursor

Re: [Fish-users] Completion problem with regexp and string concatenation

2019-03-06 Thread David Adam
On Sun, 3 Mar 2019, SanskritFritz wrote: > I'm writing completions for borg. > There is a special case where I want to achieve the following: > Fish should give a second archive list when the following scenario is > present (the cursor is now at the end of the line after a space): > borg diff