Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use windows cmd tab completion? #190

Closed
CarlosOnline opened this issue Feb 22, 2014 · 10 comments
Closed

Use windows cmd tab completion? #190

CarlosOnline opened this issue Feb 22, 2014 · 10 comments

Comments

@CarlosOnline
Copy link

Is it possible to modify clink TAB completion to work like windows TAB completion which cycles thru the different folder names when matching folder names?

For example:

1st TAB:
c:> Program --> c:\Program Files

2nd TAB:
c:> Program --> c:\Program Files (x86)

@mridgers
Copy link
Owner

Yup. Read up on "menu completion" in Readline's manual and Clink's docs for the location of your clink_inputrc file.

http://cnswww.cns.cwru.edu/php/chet/readline/rluserman.html

@CarlosOnline
Copy link
Author

Thanks, figured it out.

edited file: c:\Program Files (x86)\clink\0.4\clink_inputrc_base

I replaced:
"\t": clink-completion-shim

with:
TAB: menu-complete
"\t": menu-complete

and it now works.

@mateusz-matela
Copy link

This kind of works for me, but one thing missing is that SHIFT+TAB should cycle in the opposite direction.
Is it possible to configure it?
I know how to do it for example for CTRL+Q:
C-q: menu-complete-backward
But how to represent SHIFT+TAB?

@mridgers
Copy link
Owner

mridgers commented Jun 9, 2015

In the current version of Clink it isn't possible to bind Shift-Tab unfortunately, but as you can see above this has been been fixed and will be available soon (it is already available in the Dropbox builds).

@nazikus
Copy link

nazikus commented Aug 5, 2015

I have tried these configs:
"\t": menu-complete
"\e`Z": menu-complete-backward

forward works ok, but not backward.

I have also tried \e[Z, \e\t, ^[[Z for backward and it didn't work neither.

clink 0.4.4, Win8 x64

@mridgers
Copy link
Owner

mridgers commented Aug 5, 2015

The Shift-Tab fix support isn't in 0.4.4, so that is why backwards didn't work for you. I really need to prepare an update! In the mean time you can try a version from here.

@nazikus
Copy link

nazikus commented Aug 5, 2015

great. thank you!

ps
why not to put dev build as pre-release (in releases)?

@mridgers
Copy link
Owner

mridgers commented Aug 5, 2015

why not to put dev build as pre-release (in releases)?

No real reason really. I was using Dropbox when Clink lived on Google Code and it's all conveniently automated. I've not looked into migrating it over use what Github provides.

@grantelledge
Copy link

This file has been renamed (I believe), and the contents are different -- much more readable, but unfortunately it makes this answer not work. I can't seem to find a solution online for this on 1.6.0, which surprised me. Any ideas?

@sskras
Copy link

sskras commented Jan 8, 2024

Probably worth trying the new repo: #579

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants