-
Notifications
You must be signed in to change notification settings - Fork 283
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
Clink_inputrc not being processed if it the clink_inputrc is a link (created via mklink) #342
Comments
e.g. on my system the file name is settings, not clink_inputrc ( |
Your The It is worth noting that this path can unfortunately change depending on how Clink is start. It has been reported in #298. |
Perfect. I now think I'm using the correct path. Now, my setting aren't getting picked up :) I'm trying to set VI mode, but when I create new terminals, I'm not in VI mode until I type C-A-J. How do I debug? Here are my settings:
Also, out of curiosity why don't you use %USERPROFILE%/clink_inputrc? (Or some set of paths with that being one of the choices) |
Clink used to do this but this behaviour did not suit people who run Clink in "portable" mode (from a USB stick for example). So a hybrid was introduced where %LOCALAPPDATA%* is used when Clink's installed. It's not perfect though, hence #298 was raised. * %APPDATA% or %LOCALAPPDATA% are better choices for modern versions of Windows if you want to be a good Windows citizen. |
So it seems my cink_inputrc is in the right spot. Any idea why set editing-mode vi is being ignored? How can I debug? |
I just double checked this is behaving as I expected, which it is. Here's what I did;
Debugging is pretty tricky if I'm honest as Readline doesn't give any feedback. You can easily confirm the clink_inputrc's in the correct place by adding a simple key sequence macro;
If all is working as expected pressing |
Using the Foobar alias is a great way to debug I found the issue, clink is ignoring the settings file if it's a symlink (created via mklink). Using a regular file, it works - WOOT! Unrelated to this issue, how does Alt-~ expansion work? On my box pressing Alt-~ does nothing. |
I don't know what the impact is of using a keyboard layout other than US or UK. If I switch to a Swedish layout then Windows buffers the Apologies for the late reply. |
An update if anyone skims this thread Since Issue: #258 has been fixed, _inputrc should be placed in the %USERPROFILE% directory. Links are still broken though. |
I had the same issue. It seems that |
* fixes mridgers#461 * ref/see also: <mridgers#342>
* fixes mridgers#461 * ref/see also: <mridgers#342>
* fixes mridgers#461 * ref/see also: <mridgers#342>
@idvorkin & @khaoos-abominable , The symlink issue is caused by a bug in the readline config file parsing code (specifically, PR#462 should fix it. |
* fixes mridgers#461 * ref/see also: <mridgers#342>
* fixes mridgers#461 * ref/see also: <mridgers#342>
* fixes mridgers#461 * ref/see also: <mridgers#342>
Readline 8.0 fixed this (in exactly the same way), and the chrisant996/clink fork was updated to use Readline 8.0, so moving forward this has been addressed. |
It's already been fixed in other forks since July of 2017. |
But not in the mridgers repo, which is the natural source to fork for producing a new resurrected clink. I'm making notes in issues to keep track of what's addressed in this new fork. And so that if people know of specific fixes in various forks then they can send me commits or pull requests to incorporate them into the chrisant996 fork. |
I've install with chocolaty. I tried a bunch of locations and no luck. How can I debug if I have this in the wrong location vs syntax error? It'd be great if I could look in the log file to see what file location was searched for clink_inputrc. FYI - I'm clink version:
C:\Users\Igor>clink
Clink v0.4.3 [git:258fc3] Copyright (c) 2014 Martin Ridgers
http://mridgers.github.io/clink
The text was updated successfully, but these errors were encountered: