LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-01-2014, 03:54 AM   #1
bstaletic
Member
 
Registered: Apr 2014
Distribution: Arch
Posts: 39

Rep: Reputation: Disabled
Question Zsh auto suggestion and tab completion


I found a way to auto suggestion in zsh behave like those of fish. For that I used this git repo.

Unfortunately with these scripts tab completions don't behave like they used to.
When there are multiple possible completions first tab lists all available completions, but second tab just picks the first one. This way it is impossible to cycle through the available completions.

What should I edit for it to make tab behave like it's used to?

Last edited by bstaletic; 06-01-2014 at 03:56 AM. Reason: wrong link
 
Old 06-02-2014, 11:41 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Have you tried using the arrow keys to cycle through the suggested completions?

The tab behavior is in the autosuggestions.zsh script: first tab gets suggestions, second tab accepts highlighted suggestion. Try using the arrow keys to cycle through the suggested completions.

You could try to edit the function that causes accept on second tab to make it cycle through suggested completions. But then you would need to code how to accept the highlighted suggestion. Much easier to use arrow keys if that's what cycles through suggested completions and accept with second tab.
 
1 members found this post helpful.
Old 06-02-2014, 11:54 AM   #3
bstaletic
Member
 
Registered: Apr 2014
Distribution: Arch
Posts: 39

Original Poster
Rep: Reputation: Disabled
Thanks, that worked. I just needed to figure out how to set menu like choosing of available copletions.

P.S. Zsh is great.
P.P.S. Cool signature.
 
  


Reply

Tags
completion, fish, suggestion, zsh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any substitute key for <TAB> (auto completion)? stf92 General 2 01-08-2013 05:52 AM
Completion while typing in bash or zsh? anon109 Linux - General 2 08-25-2011 01:56 AM
zsh completion and square brackets Stigius Linux - Software 0 06-27-2010 09:39 AM
LXer: Color Completion Using Zsh Modules On Linux Or Unix LXer Syndicated Linux News 0 12-17-2008 08:40 AM
TAB Auto Completion rsmccain Linux - Software 6 11-20-2007 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration