nnn/README.md

59 lines
2.0 KiB
Markdown
Raw Normal View History

2016-08-20 14:10:14 +00:00
# noice
2016-08-20 16:27:14 +00:00
2016-08-20 14:10:14 +00:00
A fork of noice file browser: http://git.2f30.org/noice/
2016-08-20 16:27:14 +00:00
2016-08-21 07:28:38 +00:00
Additional customization to make it more friendly towards major distros (which `suck more` by some standards).
2016-08-20 16:27:14 +00:00
2016-08-21 12:07:18 +00:00
## Default features
- Browse current or specified directory
- Navigate to parent or child directories
- Jump to first or last entry
- Open files with default-associated programs
- Jump to home directory
2016-08-21 16:10:34 +00:00
- Filter contents in current directory
2016-08-21 12:07:18 +00:00
- Show/hide hidden files
- Sort entries by time modified
- Spawn a shell in current directory
- Run `top`
- Open a file with `vim` or `less`
2016-08-20 16:27:14 +00:00
## Modifications
2016-08-21 12:49:57 +00:00
- Behaviour
2016-08-21 14:51:20 +00:00
- Case-insensitive alphabetic content listing instead of upper case first.
2016-08-20 16:27:14 +00:00
- File associations
2016-08-21 15:47:23 +00:00
- Environment variable `NOICE_OPENER` to override all associations and open all files with your desktop environments default file opener. Examples:
2016-08-21 08:28:53 +00:00
2016-08-21 13:12:22 +00:00
export NOICE_OPENER=xdg-open
export NOICE_OPENER=gnome-open
export NOICE_OPENER=gvfs-open
2016-08-21 15:47:23 +00:00
All the following associations are ignored if `NOICE_OPENER` is exported.
2016-08-21 04:41:19 +00:00
- Associate plain text files with vim (using `file` command)
2016-08-21 07:28:38 +00:00
- Remove video file associations (to each his own favourite video player)
2016-08-21 16:14:56 +00:00
- Associate common audio file types with lightweight [fmedia](http://fmedia.firmdev.com/)
2016-08-20 16:27:14 +00:00
- Associate PDF files with zathura
- Removed less
2016-08-21 10:32:03 +00:00
- Use environment variable `NOICE_FALLBACK_OPENER` to open other non-associated files
2016-08-20 16:27:14 +00:00
- Compilation
- Use `-O3` for compilation, fixed warnings
- Added compilation flag `-march=native` (compile only, no plans to package).
- Remove generated config.h on `make clean`.
## Installation
$ make
$ sudo make install
## Help
$ man noice
2016-08-21 10:32:03 +00:00
## Change associations
2016-08-21 15:47:43 +00:00
If you want to set custom applications for certain mime types, or change the ones set already (e.g. vim, fmedia, zathura), modify the `assocs` structure in *config.def.h* (it's easy). Then run the following commands to re-compile and install:
2016-08-21 10:32:03 +00:00
$ make clean
$ make
$ sudo make install