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 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 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)

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

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

@oussaka
Copy link

oussaka commented Mar 16, 2017

It is good for me
Thanks, bro

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

4 participants