clink icon indicating copy to clipboard operation
clink copied to clipboard

Reverse search is not working

Open sendev1 opened this issue 4 years ago • 6 comments

When I type ctrl+r the reverse-i-search windows comes up but as soon as i type my first character it bring the command matching that charcter but I am not able to continue to type like remove and find the matching command.

image

sendev1 avatar Oct 10 '20 20:10 sendev1

ctlr+s is not doing anything. I am not even able to type the charcters

sendev1 avatar Oct 10 '20 20:10 sendev1

This fork has been inactive for years. Have you tried in chrisant996/clink? Ctrl+R and Ctrl+S seem to work fine there.

chrisant996 avatar Oct 15 '20 00:10 chrisant996

It says

Download
Downloads for the latest release of Clink are not available. Stay tuned.

Could you please tell me which clink cmder default it uses and how can I download the one that you referred and make cmder to use the newly download clink

sendev1 avatar Oct 20 '20 21:10 sendev1

The chrisant996 fork isn't ready yet to replace the clink that's bundled with cmder. I'm working on it.

Cmder uses clink v0.4.8, which has a different syntax for the argument and match completions lua scripts.

The chrisant996 fork is working on finishing the v1.0.0 enhancements that Martin had shared in an unfinished state. The lua syntax changes are incompatible between the versions, and I'm working on fixing that so they can interoperate seamlessly.

This is a side project for me and so I can't commit to any particular dates. It's coming, though... 😁

chrisant996 avatar Oct 21 '20 05:10 chrisant996

Ok Chris. Thanks for the reply. I thought Martin’s repo was the one used in cmder because when i searched clink in google that was the first repo that came in search results 🙂. So basically I downloaded cmder from their website and tried to use the history back search option by pressing ctrl+r and I start typing the keyword. Some times it wont take any of the letters that i type or sometimes it takes only one letter or sometimes it takes 2 or 3 letters. It looks i need to type fast without any delay to get the search results. Lets say if i wanted to search “image” in the history of commands look like i need type image fast without any gap??? May be I don’t know how to use back history search option. Could you please guide me.

On Wed, Oct 21, 2020 at 12:29 AM Chris Antos [email protected] wrote:

The chrisant996 fork isn't ready yet to replace the clink that's bundled with cmder. I'm working on it.

Cmder uses clink v0.4.8, which has a different syntax for the argument and match completions lua scripts.

The chrisant996 fork is working on finishing the v1.0.0 enhancements that Martin had shared in an unfinished state. The lua syntax changes are incompatible between the versions, and I'm working on fixing that so they can interoperate seamlessly.

This is a side project for me and so I can't commit to any particular dates. It's coming, though... 😁

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mridgers/clink/issues/549#issuecomment-713312850, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLELAADLE5JILKFTDAIKRDSLZWSHANCNFSM4SLI3PRQ .

sendev1 avatar Oct 21 '20 22:10 sendev1

I recommend reading the Clink documentation, and especially the Readline documentation that it references. The history search features (and most of the editing features in Clink) come from the Readline library.

I'm not having any trouble using Ctrl+R in cmder with the version of clink bundled with it. Searching the history ignores any keys that don't match. So if it's doing nothing when you press a key, that probably means there is no match.

Also, the report only describes what doesn't happen; it doesn't mention what does happen. So it's hard to offer suggestions.

chrisant996 avatar Oct 22 '20 00:10 chrisant996