mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +00:00
Use gnome-search-tool as default search utility
Reasons: gnome-search-tool is much more powerful than other tools in its category. It supports numerous search parameters like size, modification date and supports text search.
This commit is contained in:
parent
e63dc3457d
commit
16ec5d3351
|
@ -65,7 +65,7 @@ Have fun with it! PRs are welcome. Check out [#1](https://github.com/jarun/nnn/i
|
||||||
- Disk usage analyzer mode
|
- Disk usage analyzer mode
|
||||||
- Search
|
- Search
|
||||||
- Filter directory contents with search-as-you-type
|
- Filter directory contents with search-as-you-type
|
||||||
- Desktop search (default catfish, customizable) integration
|
- Desktop search (default gnome-search-tool, customizable) integration
|
||||||
- Mimes
|
- Mimes
|
||||||
- Desktop opener integration
|
- Desktop opener integration
|
||||||
- Customizable bash script [nlay](https://github.com/jarun/nnn/wiki/all-about-nlay) to handle media type or action
|
- Customizable bash script [nlay](https://github.com/jarun/nnn/wiki/all-about-nlay) to handle media type or action
|
||||||
|
@ -156,7 +156,7 @@ Right, Enter, l, ^M | Open file or enter dir
|
||||||
- | Jump to last visited dir
|
- | Jump to last visited dir
|
||||||
o | Open dir in NNN_DE_FILE_MANAGER
|
o | Open dir in NNN_DE_FILE_MANAGER
|
||||||
/ | Filter dir contents
|
/ | Filter dir contents
|
||||||
^/ | Search dir in catfish
|
^/ | Search dir in gnome-search-tool
|
||||||
c | Show change dir prompt
|
c | Show change dir prompt
|
||||||
d | Toggle detail view
|
d | Toggle detail view
|
||||||
D | Toggle current file details screen
|
D | Toggle current file details screen
|
||||||
|
@ -216,7 +216,7 @@ nnn is designed to play files using multiple strategies (in order of decreasing
|
||||||
- viewnior - image
|
- viewnior - image
|
||||||
- [zathura](https://pwmt.org/projects/zathura/) - pdf
|
- [zathura](https://pwmt.org/projects/zathura/) - pdf
|
||||||
- vim - plain text
|
- vim - plain text
|
||||||
- catfish - search
|
- gnome-search-tool - search
|
||||||
- to add, remove recognized extensions in nnn, see [how to change file associations](#change-file-associations)
|
- to add, remove recognized extensions in nnn, see [how to change file associations](#change-file-associations)
|
||||||
- If a file without any extension is a plain text file, it is opened in EDITOR (fallback vi)
|
- If a file without any extension is a plain text file, it is opened in EDITOR (fallback vi)
|
||||||
- Set `NNN_FALLBACK_OPENER` as the fallback opener. E.g.:
|
- Set `NNN_FALLBACK_OPENER` as the fallback opener. E.g.:
|
||||||
|
|
4
nlay
4
nlay
|
@ -123,11 +123,11 @@ fi
|
||||||
|
|
||||||
#----------------- SEARCH -------------------
|
#----------------- SEARCH -------------------
|
||||||
if [ "$2" == "search" ]; then
|
if [ "$2" == "search" ]; then
|
||||||
app=catfish
|
app=gnome-search-tool
|
||||||
#search_opts=
|
#search_opts=
|
||||||
|
|
||||||
bg=">/dev/null 2>&1 &"
|
bg=">/dev/null 2>&1 &"
|
||||||
|
|
||||||
eval $app $search_opts "\"$1\"" $bg
|
eval $app $search_opts --path "\"$1\"" $bg
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
2
nnn.1
2
nnn.1
|
@ -52,7 +52,7 @@ Open directory in NNN_DE_FILE_MANAGER
|
||||||
.It Ic /
|
.It Ic /
|
||||||
Change filter (more information below)
|
Change filter (more information below)
|
||||||
.It Ic ^/
|
.It Ic ^/
|
||||||
Search directory in catfish
|
Search directory in gnome-search-tool
|
||||||
.It Ic c
|
.It Ic c
|
||||||
Change into the given directory
|
Change into the given directory
|
||||||
.It Ic d
|
.It Ic d
|
||||||
|
|
2
nnn.c
2
nnn.c
|
@ -1236,7 +1236,7 @@ show_help(void)
|
||||||
- | Jump to last visited dir\n\
|
- | Jump to last visited dir\n\
|
||||||
o | Open dir in NNN_DE_FILE_MANAGER\n\
|
o | Open dir in NNN_DE_FILE_MANAGER\n\
|
||||||
/ | Filter dir contents\n\
|
/ | Filter dir contents\n\
|
||||||
^/ | Search dir in catfish\n\
|
^/ | Search dir in gnome-search-tool\n\
|
||||||
c | Show change dir prompt\n\
|
c | Show change dir prompt\n\
|
||||||
d | Toggle detail view\n\
|
d | Toggle detail view\n\
|
||||||
D | Toggle current file details screen\n\
|
D | Toggle current file details screen\n\
|
||||||
|
|
Loading…
Reference in a new issue