enhancd icon indicating copy to clipboard operation
enhancd copied to clipboard

Going to existing directory is still showing the filter

Open augustocdias opened this issue 1 year ago • 11 comments

When I cd to an exact match within the CWD it is still showing the filter to select an option.

This is happening in fish on mac os arm.

augustocdias avatar Apr 13 '23 14:04 augustocdias

More detail please

babarot avatar Apr 13 '23 14:04 babarot

I am in the same issue, too. In arm, when you are cd in to an exist directory, it should be auto completed with tab. For example: cd ~/Down and tap tab, and it will auto completed as cd ~/Download. But it did not.

Nightlord851108 avatar Apr 14 '23 13:04 Nightlord851108

same here Fish

(exists in cwd) should Go to dir without the filter command (same as builtin cd). But it shows **filter**

ibeex avatar Apr 16 '23 08:04 ibeex

So this gif shows what happens. When I cd into openmls it is the only one match and it still shows the filter

tty

augustocdias avatar Apr 18 '23 11:04 augustocdias

I guess this is a duplicate of #206.

svengreb avatar Apr 22 '23 09:04 svengreb

Same issue. fish, arch_linux, x86_64

boyanxu avatar May 07 '23 11:05 boyanxu

Having same issue on master branch.

In my case the reason was that function _enhancd_filter_interactive received two entries from stdin, one of them was specified directory and the other some empty string (probably with whitespaces). I don't understand awk code, so my workaround was to change the function on line 32 from:

    switch "$count"
        case '1'

to

    switch "$count"
        case '2'

This should be fine, because it looks like this function will receive one empty entry in any case.

Darkclainer avatar May 12 '23 17:05 Darkclainer

@b4b4r07 is the solution from @Darkclainer the correct approach? I can open a PR if so.

augustocdias avatar Jul 24 '23 11:07 augustocdias

I encounter the same issue too. even cd ~/Desktop/ still shows the filter.

cyrusn avatar Sep 14 '23 05:09 cyrusn

I have the same issue, clean install of Ubuntu 23.10, using fish shell. Will use hack @Darkclainer suggested for now.

Walheimat avatar Nov 10 '23 08:11 Walheimat

@augustocdias, I saw you made a more correct (in my opinion) fix: https://github.com/augustocdias/enhancd/commit/a6b9835d3a1e40d5dfd98c90aa2818eea56f03e2. Could you please create PR, so the maintainer, at least will identify the problem more clearly or hopefully will merge fix?

Darkclainer avatar Nov 17 '23 10:11 Darkclainer