* Re: How to accept a completion? [not found] ` <090429171254.ZM10469@torch.brasslantern.com> @ 2009-04-30 0:22 ` Bart Schaefer 2009-04-30 8:32 ` Peter Stephenson 0 siblings, 1 reply; 2+ messages in thread From: Bart Schaefer @ 2009-04-30 0:22 UTC (permalink / raw) To: zsh-workers On Apr 29, 5:12pm, Bart Schaefer wrote: } } } % scp file lth: } } Now how do i complete files on the remote end? If i press tab again i just get } } % scp file lth/ } } And if i type a : i get } } % scp file lth:: } } I believe the following is the correct fix. I tried some more specific } things with -r instead of -q but they seemed unsatisfactory. Hmm, on the other hand, I just noticed that % scp file lth:<space> becomes % scp file lth <cursor> So arguably on a whitespace character the colon should be left there. Maybe '-r:' really would be better than '-q'. (The -q is correct in the case with the '=' suffix, though, I'm pretty sure.) Any thoughts? ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to accept a completion? 2009-04-30 0:22 ` How to accept a completion? Bart Schaefer @ 2009-04-30 8:32 ` Peter Stephenson 0 siblings, 0 replies; 2+ messages in thread From: Peter Stephenson @ 2009-04-30 8:32 UTC (permalink / raw) To: zsh-workers On Wed, 29 Apr 2009 17:22:04 -0700 Bart Schaefer <schaefer@brasslantern.com> wrote: > Hmm, on the other hand, I just noticed that > > % scp file lth:<space> > > becomes > > % scp file lth <cursor> > > So arguably on a whitespace character the colon should be left there. > Maybe '-r:' really would be better than '-q'. (The -q is correct in > the case with the '=' suffix, though, I'm pretty sure.) > > Any thoughts? I think you're right and removing the colon in this particular case is annoying, I sometimes transfer to "host:" myself. -r isn't that widely used and there may be glitches, but if -r: fixes the particular case in question it'll do. It's not really obvious that you can use ":" to stop completion here, though if you're used to typing "/" in file completion it's more so. I think you can use _next_tags to go on to the next completion here (it's not really designed to do that but it seemed to work here, presumably because there's nothing else to complete). However, there seems to be a bug since when I did use it the next time completion for scp didn't work at all under I did some other completion. I haven't tracked this down. -- Peter Stephenson <pws@csr.com> Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-30 8:32 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <237967ef0904291136v63ae26f4mb08cbd577b3f4503@mail.gmail.com> [not found] ` <090429171254.ZM10469@torch.brasslantern.com> 2009-04-30 0:22 ` How to accept a completion? Bart Schaefer 2009-04-30 8:32 ` Peter Stephenson
Code repositories for project(s) associated with this public inbox https://git.vuxu.org/mirror/zsh/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).