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

Comments

@modbw
Copy link

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

This comment has been minimized.

Copy link
Owner

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 Jul 9, 2016

@keathmilligan

This comment has been minimized.

Copy link

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.

@oussaka

This comment has been minimized.

Copy link

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
Projects
None yet
4 participants
You can’t perform that action at this time.