-
-
Notifications
You must be signed in to change notification settings - Fork 733
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
Selector randomly jumps up #41
Comments
Does the same item remain selected or the selection moves to a different item? |
Also, please share the steps for reproduction. Otherwise it's difficult to figure out what's going wrong. |
The selector moves to a higher item, by a constant number, repeatedly with random intervals. |
What is the interval? Are you having any filter enabled (like size, time etc.)? I didn't understand what you meant regarding building... did you try compiling and using nnn from master? |
I need the exact steps to observe this behaviour. |
Yes I compiled from master (I used the expression 'latest commit', but I means, latest commit on master). I used the nix expression I linked, but used the latest master as 'src'. |
When you enter a new directory, nnn should jump to the first entry instantly. Please note down what you did after entering the directory. |
I have narrowed it down better. Basically, every time it switches to a new folder (left or right), after a second it jumps to the highest visible item. If the intended behavior is to automatically selecte the highest visible item (I would want to change that personally), then there should not be 1000+ms before it happens. Could I just disable that 'goto top on open dir' completely? edit: s/should/should\ not |
Here's the defined behaviour:
The selection is instant, there is no delay. If you are seeing a delay, there's something else in play. Also, I asked earlier, do you have any filter set or are you in the navigate-as-you-type mode? |
In addition to my earlier comment, I am not sure if it's relevant, but what's your hardware (CPU, RAM)? |
The expected behavior you are describing is what im seeing, so the jump is a separate issue. There is no filter, no navigate as I type mode, just plain browsing. This is happening on my workstation, so lots of cpu and ram. |
Yes, we need to figure out what's taking it so long to jump. Now when you say jump, are you saying that the selection shows up after a second, OR when you enter the dir something is selected first, then the selection jumps up to the topmost entry (as it should)? Also what happens if you are in the light mode (press |
I'll setup nixOS on a VM and see if I can reproduce it. Makes life easier for both of us. ;) |
I mean everything behaves fine, the cursor appears where it should be, but if I then move the cursor down (or if it wasnt placed at the top), after a second the cursor will move back to the highest visible item. It will only do this only once every time a directory is opened. |
Light mode has the same bug. |
I'll check. |
Does nixos have libncursesw or ncursesw? I can see it links to ncurses. |
I rebuilt my system and the issue went away. |
Awesome! Award a star. ;) |
The issue is caused by my custom key bindings. |
Found it. |
|
So nnn is sending the Ctrl-L signal? |
No Page up. It's above Ctrl-L in the key bindings structure. So pressing Ctrl-L is doing what Ctrl-U should do. |
It's difficult for me to pursue an issue which is not under my control. In your issue report you didn't even mention you are changing the code. If you are trying to hack things, you are welcome to do so. If you find it worth changing mainline, please raise a PR and I will review it if the change adds value to the current set of features. A bug report is not the right place to support experimental code changes. |
Building from HEAD on nixOS.
I have a weird bug which makes the 'current selection' jump up several entries randomly, without any input. Reproduced with different emulators and in a tty.
The text was updated successfully, but these errors were encountered: