My build of nnn with minor changes
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

README.md 5.9 KiB

il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. ## noice
  2. A fork of the [noice](http://git.2f30.org/noice/) file browser to make it more friendly towards major distros (which `suck more` by some standards).
  3. ### Table of Contents
  4. - [Introduction](#introduction)
  5. - [Why fork?](#why-fork)
  6. - [Default features](#default-features)
  7. - [Fork toppings](#fork-toppings)
  8. - [Installation](#installation)
  9. - [Usage](#usage)
  10. - [Keyboard shortcuts](#keyboard-shortcuts)
  11. - [File type abbreviations](#file-type-abbreviations)
  12. - [Help](#help)
  13. - [Copy current file path to clipboard](#copy-current-file-path-to-clipboard)
  14. - [Change file associations](#change-file-associations)
  15. ### Introduction
  16. noice is a blazing-fast terminal file browser with easy keyboard shortcuts for navigation, opening files and running tasks. noice is developed with terminal based systems in mind. However, the incredible user-friendliness and speed make it a perfect utility on modern distros. Navigate to `/usr/bin` from your regular file browser and noice to feel the difference.
  17. The only issue with noice is hard-coded file association. There is no config file (better performance and simpler to maintain) and you have to modify the source to change associations (see [how to change file associations](#change-file-associations)). This fork solves the problem by adding the flexibility of using the default desktop opener at runtime. There are several other improvements too (see [fork-toppings](#fork-toppings)).
  18. Have fun with it! PRs are welcome. Check out [#1](https://github.com/jarun/noice/issues/1).
  19. ### Why fork?
  20. I chose to fork noice because:
  21. - one can argue my approach deviates from the goal of the original project - keep the utility `suckless`. In my opinion evolution is the taste of time.
  22. - I would like to have a bit of control on what features are added in the name of desktop integration. A feature-bloat is the last thing in my mind.
  23. ### Default features
  24. - Super-easy navigation
  25. - Open files with default-associated programs
  26. - Jump to home directory
  27. - Filter contents in current directory
  28. - Show/hide hidden files
  29. - Sort entries by modification time (newest to oldest)
  30. - Spawn a shell in current directory
  31. - Run `top`
  32. - Open a file with `vim` or `less`
  33. ### Fork toppings
  34. - Behaviour and navigation
  35. - Detail view (default: disabled) with:
  36. - file type
  37. - modification time
  38. - human-readable file size
  39. - current item in reverse video
  40. - number of items in current directory
  41. - full name of currently selected file
  42. - Case-insensitive alphabetic content listing instead of upper case first
  43. - Roll over at the first and last entries of a directory (with Up/Down keys)
  44. - Sort entries by file size (largest to smallest)
  45. - Shortcut to invoke file name copier (set using environment variable `NOICE_COPIER`)
  46. - File associations
  47. - Environment variable `NOICE_OPENER` to override all associations and open all files with your desktop environment's default file opener. Examples:
  48. export NOICE_OPENER=xdg-open
  49. export NOICE_OPENER=gnome-open
  50. export NOICE_OPENER=gvfs-open
  51. - Selective file associations (ignored if `NOICE_OPENER` is set):
  52. - Associate plain text files with vim (using `file` command)
  53. - Remove video file associations (to each his own favourite video player)
  54. - Associate common audio mimes with lightweight [fmedia](http://fmedia.firmdev.com/)
  55. - Associate PDF files with [zathura](https://pwmt.org/projects/zathura/)
  56. - Removed `less` as default file opener
  57. - Use environment variable `NOICE_FALLBACK_OPENER` to open other non-associated files
  58. - Compilation
  59. - Use `-O3` for compilation, fixed warnings
  60. - Added compilation flag `-march=native`
  61. - Remove generated config.h on `make clean`
  62. - strip the final binary
  63. ### Installation
  64. noice needs a curses implementation and standard libc.
  65. Download the [latest master](https://github.com/jarun/noice/archive/master.zip) or clone this repository. Compile and install:
  66. $ make
  67. $ sudo make install
  68. No plans of packaging at the time.
  69. ### Usage
  70. Start noice (default: current directory):
  71. $ noice [path_to_dir]
  72. `>` indicates the currently selected entry.
  73. ### Keyboard shortcuts
  74. | Key | Function |
  75. | --- | --- |
  76. | `Down`, `j`, `Ctrl-n` | next entry |
  77. | `Up`, `k`, `Ctrl-p` | previous entry |
  78. | `>`, `Enter`, `l` | open file or enter dir |
  79. | `<`, `Backspace`, `h` | parent dir |
  80. | `Page Down`, `Ctrl-d` | one page down |
  81. | `Page Up`, `Ctrl-u` | one page up |
  82. | `Home`, `Ctrl-a`, `^` | jump to first dir entry |
  83. | `End`, `Ctrl-e`, `$` | jump to last dir entry |
  84. | `~` | jump to home dir |
  85. | `/`, `&` | filter dir contents |
  86. | `c` | show change dir prompt |
  87. | `d` | toggle detail view |
  88. | `.` | toggle hide dot files |
  89. | `s` | toggle sort by file size |
  90. | `t` | toggle sort by modified time |
  91. | `!` | spawn a shell in current dir |
  92. | `e` | edit entry in `vim` |
  93. | `p` | open entry with `less` pager |
  94. | `z` | run `top` |
  95. | `Ctrl-k` | invoke file name copier |
  96. | `Ctrl-l` | redraw window |
  97. | `q` | quit noice |
  98. ### File type abbreviations
  99. The following abbreviations are used in the detail view:
  100. | Symbol | File Type |
  101. | --- | --- |
  102. | `/` | Directory |
  103. | `*` | Executable |
  104. | `|` | Fifo |
  105. | `=` | Socket |
  106. | `@` | Symbolic Link |
  107. | `b` | Block Device |
  108. | `c` | Character Device |
  109. ### Help
  110. $ man noice
  111. ### Copy current file path to clipboard
  112. noice can pipe the absolute path of the current file to a copier script. For example, you can use `xsel` on Linux or `pbcopy` on OS X.
  113. Sample Linux copier script:
  114. #!/bin/sh
  115. echo -n $1 | xsel --clipboard --input
  116. export `NOICE_OPENER`:
  117. export NOICE_COPIER="/home/vaio/copier.sh"
  118. Start noice and use `Ctrl-k` to copy the absolute path (from `/`) of the file under the cursor to clipboard.
  119. ### Change file associations
  120. 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](https://github.com/jarun/noice/blob/master/config.def.h) (it's easy). Then re-compile and install.