3

In the terminal I use bind '"\t":menu-complete' to auto complete my commands using the Tab key.

If I hit the Tab key again, it shows the next choice.

Sometimes I miss the entry and I have to go through the whole list again.

It would be nice if I could cycle backwards using Shift + Tab.

Is that possible?

4
  • Why are you doing auto-complete like this? Isn't it simpler to use inbuilt auto-complete and get lists and just add letters as needed? This would also take far less key-presses than having to press TAB a lot. Apr 10, 2014 at 1:00
  • @Simplexion how I do it is type a couple of letters then hit tab to fetch the first suggestion. But if there are 5-6 options left and I miss the one I need then I have to press tab a lot. Otherwise its ok
    – ppp
    Apr 10, 2014 at 21:17
  • If you type the first couple of letters and press tab twice it will list all of your options and then you enter the next letter and press tab again. This would be far less key presses than hitting tab to get to the command/entry you are after. May 2, 2014 at 1:24
  • @Simplexion I know I can always go with what you are suggesting. I still would love to find a way to Shift-Tab though so I could try that too and see if it helps me at all. Do you have any suggestions on how I might do it?
    – ppp
    May 3, 2014 at 7:40

1 Answer 1

0

So I saw this post to help with a similar concept that might answer your question, hopefully it works on your OS:

How to make terminal autocomplete when there are several files/directory?

1
  • Please, include some details from the post and make your answer presentable... The link could get lost. May 24, 2019 at 16:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .