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

Forward slashes in path completion #395

Closed
modbw opened this issue Apr 27, 2016 · 3 comments
Closed

Forward slashes in path completion #395

modbw opened this issue Apr 27, 2016 · 3 comments

Comments

@modbw
Copy link

@modbw modbw commented Apr 27, 2016

Would it be possible to have (optional) forward slashes in path completion? As I copy/past paths from a clink pimped cmd to a ssh session from time to time this would be really practical for me.

@mridgers
Copy link
Owner

@mridgers mridgers commented Jul 9, 2016

Optionally isn't quite so straight forward, but you can do it by creating a dummy Lua match generator that tells Clink to use forward slashes. Put this in a .lua file alongside Clink;

local function force_fwd_slashes(text, first, last)
    clink.slash_translation(1)
    return false
end

clink.register_match_generator(force_fwd_slashes, -1)

Loading

@mridgers mridgers closed this Jul 9, 2016
@keathmilligan
Copy link

@keathmilligan keathmilligan commented Jul 12, 2016

Nice - if you use cmder, you can just add this to the end of your cmder/config/cmd.lua file and it works.

Loading

@oussaka
Copy link

@oussaka oussaka commented Mar 16, 2017

It is good for me
Thanks, bro

Loading

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

Successfully merging a pull request may close this issue.

None yet
4 participants