Skip to content

Add backslash when auto-completing folder #39

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

Closed
kimbirkelund opened this issue Sep 26, 2013 · 7 comments
Closed

Add backslash when auto-completing folder #39

kimbirkelund opened this issue Sep 26, 2013 · 7 comments
Labels
Issue-Enhancement It's a feature request.

Comments

@kimbirkelund
Copy link

When auto-completion gives one result which is a folder I'd like it to add the backslash so I don't have to, to continue.

@GameScripting
Copy link

+1 That would be great! 👍

@lzybkr
Copy link
Contributor

lzybkr commented Oct 17, 2013

I'll probably do this at some point, but you can have this functionality today if you use https://github.com/lzybkr/TabExpansionPlusPlus.

Add something like this to your profile:

Import-Module TabExpansion++
Set-TabExpansionOption -Option AppendBackslash

@GameScripting
Copy link

Works great! Thank you!

@jhclark
Copy link

jhclark commented Oct 25, 2013

Love it.

@lzybkr
Copy link
Contributor

lzybkr commented Dec 4, 2013

I added support to PSReadline - 752d186
One difference from TabExpansion++ that I'm not 100% sure I like - if the directory needs to be quoted, I move the cursor inside the quotes. This is often what I want, but not always.

@lzybkr lzybkr closed this as completed Dec 4, 2013
@GameScripting
Copy link

Thats great! Thank you very much!

@jhclark
Copy link

jhclark commented Dec 4, 2013

"if the directory needs to be quoted, I move the cursor inside the quotes." -- This is almost always what I want, since it enables me to keep mashing tab to traverse down deep directory trees.

For commands that take a directory as an argument, it will always be ambiguous whether the user wants to pass the current directory or keep completing. Even so, it's only annoying to keep the cursor inside the quotes if the directory isn't the final argument to the command (I suspect it often is).

For files, I suppose it's unambiguous that the cursor should move outside the quotes.

I like the current implementation. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement It's a feature request.
Projects
None yet
Development

No branches or pull requests

4 participants