6 ms·
Try to think of it as an endless ls-cd loop with tons of automated functionality few keypresses away. Also, please try the type-to-nav mode in nnn. Also, find/
by apjana 6y ago
Try to think of it as an endless ls-cd loop with tons of automated functionality few keypresses away. Also, please try the type-to-nav mode in nnn.
Also, find/fzf etc. are useful as long as you are not on a slow disk and a mid-range Android device/the Pi. If you are saying you are OK with scanning the whole filesystem every time you are looking for something that can be anywhere under /, I simply don't prefer that.
- Scarbutt 6y agoIf you are saying you are OK with scanning the whole filesystem every time you are looking for something that can be anywhere under / You can specify a target directory from which to start the search.
- apjana 6y agoBookmarks you mean. Yes, in nnn you can jump to the bookmark from anywhere and then press `Alt-O` (my preferred key) to start the search. But you know what, let me share a smarter workflow: find . -iname "*.mp3" -print0 | nnn -p - Now you list all yours mp3 files in nnn, examine/play them and finally get to cherry-pick some and print them to stdout when you quit nnn. BTW, you can also run the find within nnn and list in nnn.
- joshuak 6y agoI see what you did there
- mst 6y agoIf you're looking for something that can be anywhere under /, then the target directory needs to be /.
- apjana 6y agoYes, that's what I intended to convey.
- mekster 6y ago> endless cd-ls loop Better to have "chpwd() { ls }" in your .zshrc as this executes ls after cd'ing to save up on your infinite amount of ls typing.
- apjana 6y agoThat'll print the list of files even in a populated directory like /usr/bin and leave me at the prompt with the last few files listed above. As soon as you want the list of files not to go away so you can control/manage/examine them, you are talking of a file manager.
- mekster 6y agoWho would regularly cd into /usr/bin/? If you only work inside messy folders with hundreds of files all the time, maybe it's time to tidy up.