You are not logged in.

#1 2020-05-16 09:05:02

duyinthee
Member
Registered: 2015-06-14
Posts: 242
Website

[SOLVED] How to get rid of filtered list in nnn file manager?

I use nnn file manager a lot. It is blazing fast and amazing. But I have one thing that I can't find out.

How can I get rid of the filtered list by hitting slash key "/" and typing I want to search.

Yes, the search function is filtering the list as I type. Then I hit Escape and the filtered list is still there.

So, for instance, I select one file and want to go to a directory that was filtered out by search (not showing) in the same directory.

In that situation, how can I get rid of the filtered list?

Thanks Everyone.

Last edited by duyinthee (2020-05-17 09:09:36)

Offline

#2 2020-05-16 09:54:41

duyinthee
Member
Registered: 2015-06-14
Posts: 242
Website

Re: [SOLVED] How to get rid of filtered list in nnn file manager?

Yeah, I now found a keybinding that Control+l to clear filter.
https://github.com/jarun/nnn/wiki

But the behavior is still a bit awkward for me. I select one or two files and hit control+l to clear filter or get rid of filtered list and to go to a directory.
In this scenario, hitting control+l will clear not only filter but also my all file selections. Then I will need to select my all files again.

Yeah, but, anyway, nnn is my main file manager. It is very very nice and productive.

Offline

#3 2020-05-17 03:32:01

arunj
Member
Registered: 2019-12-01
Posts: 6

Re: [SOLVED] How to get rid of filtered list in nnn file manager?

> I select one or two files and hit control+l to clear filter or get rid of filtered list and to go to a directory.

The selection takes you to unfiltered mode.
If you want to get out of filter mode (without selecting anything) and list all the files - Press Esc (to exit filter mode) followed by ^L (does a refresh in unfiltered mode).

Note: ^L does 2 things in 2 modes:

- filtered mode: applies the last filter. `nnn` supports nested filters.
- unfiltered mode: refreshes the directory.

> In this scenario, hitting control+l will clear not only filter but also my all file selections. Then I will need to select my all files again.

Your selection is still intact. Say, you selected 2 files. You'll see `[s:2]` in the status bar. Anything else you select will be added to that. You can always list and edit all selected files using `E`.

The reasons you lose the `+` symbols on redraw are -

1. we do not want to retain the selection info at a per-file level post refresh and match every time we reload a directory (say, with 1000s of files) from the disk.
2. `nnn` supports multi-dir multi-context selection which cannot be remembered without implementing a per-fs inode hashmap efficiently. We have an approximated one for hardlinks in du mode but it is not used in regular mode. It also increases memory consumption (inodes are 64-bit numbers) that we want to avoid on a mid-level device like the Pi or cheaper Androids.

So we took a simplified approach that let you view and edit your selection. For more details, please visit the relevant section of the project wiki: https://github.com/jarun/nnn/wiki#selection

> Yeah, but, anyway, nnn is my main file manager. It is very very nice and productive.

Thank you for the appreciation! I am the author. smile

As you might be aware already, `nnn` is always _happening_. We are cooking previews and find & list (plus lots of other exciting stuff) for the next release.
Do check out the incoming features: https://github.com/jarun/nnn/issues/506

Last edited by arunj (2020-05-17 09:23:54)

Offline

#4 2020-05-17 09:09:08

duyinthee
Member
Registered: 2015-06-14
Posts: 242
Website

Re: [SOLVED] How to get rid of filtered list in nnn file manager?

Woo, thanks so much for your reply and explanation.
How nice it is that the author of one of my favorite software replies my post.

Yes, it is thanks to nnn, I can do a lot on my work computer, for example, moving around too many files, opening straight sub-sub-sub folders very quickly and many others.
Thank You.

Offline

#5 2020-05-17 09:12:54

arunj
Member
Registered: 2019-12-01
Posts: 6

Re: [SOLVED] How to get rid of filtered list in nnn file manager?

You are welcome!

Offline

Board footer

Powered by FluxBB