-
Notifications
You must be signed in to change notification settings - Fork 2k
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 settings and history file changed #2451
Comments
It never fails. Will take a look. |
I assume Clink v1.x pre-release builds are being included because v0.4.9 has too many issues, e.g. the hooking crash? While it's intentional that Clink behaves differently now, maybe there's a way to do a migration and/or a change in Cmder that could make the transition more automatic. Anyway, I'll take a look this evening. |
Thats what I was thinking as well. |
Just FYI. I updated the release with a note regarding this issue. I was starting to look into how to have Cmder's Thank you for your support. |
Clink v1.1.14 includes automatic migration. History should be fully migrated. The documentation now has a section on upgrading, and has various compatibility notes called out. |
@i-s-o can you clarify this point:
Can you describe specifically what about the Thank you for reporting the issue! Hopefully v1.1.14 addresses the migration issues (see previous comment). Since you already have |
Cmder defaults provide a doskey alias for the history command like:
In my testing of 1.1.10 it seems the new Testing 1.1.14 now. |
Changing the Cmder history doskey alias for history to
It seems Clink history is now kept in two files I am doing the following to resolve the history command issue. From the command line:
which results in an alias like:
I will also make init.bat migrate this alias to the new 1.x.x clink alias and change it in the Cmder default aliases file. All available in a future release. |
Testing 1.1.14:
The |
Try artifacts from here: https://ci.appveyor.com/project/MartiUK/cmder/builds/36991693/artifacts |
Oh, I see.
|
@chrisant996 If I type
The above file contents contain the setting I manually set of I assume this is my new |
I have changed the fix PR #2452 again. New binaries to try: https://ci.appveyor.com/project/MartiUK/cmder/builds/36993661/artifacts |
Three thoughts regarding the default settings file:
|
|
Cool, sounds great. |
@chrisant996 Testing 1.1.19 breaks Cmder Prompt Default Cmder Prompt: My Custom Prompt: |
My Custom Prompt lua loaded from clink profile folder: prompt.lua
prompt_config.lua
|
Can you point out specifically what's broken? I'm having trouble noticing the specific issue. |
@chrisant996 I can send you a screenshot of each from the current release of Cmder when I get home. |
The report so far has screenshots and says it's broken. I'm not sure if more screenshots are needed, but I do need a sentence describing the nature of the breakage. |
Additional screenshots will show you what it should look like better than I could describe it. |
Is it that I wonder if maybe there is a script error message being reported, and this is a case of the issue where the combination of Cmder and ConEmu intermittently causes some of Clink's output to be suppressed. I'll see if I can reproduce the issue. Please let me know if this is what you're reporting, or if there's something else. Thanks! |
My custom prompt does not seem to be replacing things as you said. The defailt prompt is not working at all and is the standard cmd.exe prompt. |
Oh, I see. It's because Cmder replaces Clink's core Clink 0.4.9 actually ignores any scripts named clink.lua except for "the main one". To fix a compatibility bug, I made Clink 1.x ignore any scripts named clink.lua, exactly like 0.4.9 does. And since that's how Cmder was taking over Clink, it means Cmder fails to take over Clink anymore. On the one hand, this is excellent! Clink is properly defending itself from being taken over! UPDATE: I'll make it so Clink loads Yep, that's gotten it working again. I'll publish an update sometime this weekend, probably. I've almost got lua key bindings working... Now you can bind keys in the inputrc file to lua functions. 😎 |
Did this behavior change after clink 1.1.14? |
Yes. I already verified the fix. |
v1.1.20 is published and should resolve the Cmder integration issues. |
I'm on cmder 1.3.17 While waiting for the merge of PR and a new release, I was wondering if there's any temporary solution for this (like manually upgrade clink exes in the vender folder?) |
Yes, manually copying Clink files into the vendor\clink directory should resolve all known issues to date. |
This can be closed, yes? |
Purpose of the issue
Version Information
1.3.17
Description of the issue
The new version of Clink appears to have revamped its settings system:
%CMDER_USER_CONFIG%\settings
, it is now%CMDER_USER_CONFIG%\clink_settings
(i.e. the default settings or existing settings are not picked up).history.max_lines
instead ofhistory_file_lines
).%CMDER_USER_CONFIG%\clink_history
instead of%CMDER_USER_CONFIG%\.history
.a. the
.history
file is ignored for existing installationsb. history command (i.e. alias) is not working properly
See: https://chrisant996.github.io/clink/clink.html#configuring-clink
Old
New
The text was updated successfully, but these errors were encountered: