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.
 
 
 
 
 
 

121 lignes
3.2 KiB

  1. .Dd November 26, 2015
  2. .Dt NOICE 1
  3. .Os
  4. .Sh NAME
  5. .Nm noice
  6. .Nd small file browser
  7. .Sh SYNOPSIS
  8. .Nm noice
  9. .Op Ar dir
  10. .Sh DESCRIPTION
  11. .Nm
  12. is a simple and efficient file browser that gets out of your way
  13. as much as possible. It was initially implemented to be controlled
  14. with a TV remote control.
  15. .Pp
  16. .Nm
  17. defaults to the current directory if
  18. .Ar dir
  19. is not specified. As an extra feature, if
  20. .Ar dir
  21. is a relative path,
  22. .Nm
  23. will not go back beyond the first component of the path using standard
  24. navigation key presses.
  25. .Pp
  26. .Nm
  27. supports both vi-like and emacs-like key bindings in the default
  28. configuration. The default key bindings are described below;
  29. their functionality is described in more detail later.
  30. .Pp
  31. .Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
  32. .It Ic k, [Up] or C-p
  33. Move to previous entry.
  34. .It Ic j, [Down] or C-n
  35. Move to next entry.
  36. .It Ic [Pgup] or C-u
  37. Scroll up half a page.
  38. .It Ic [Pgdown] or C-d
  39. Scroll down half a page.
  40. .It Ic [Home], ^ or C-a
  41. Move to the first entry.
  42. .It Ic [End], $ or C-e
  43. Move to the last entry.
  44. .It Ic l, [Right], [Return] or C-m
  45. Open file or enter directory.
  46. .It Ic h, C-h, [Left] or [Backspace]
  47. Back up one directory level.
  48. .It Ic / or &
  49. Change filter (see below for more information).
  50. .It Ic c
  51. Change into the given directory.
  52. .It Ic t
  53. Toggle sort by time modified.
  54. .It Ic C-l
  55. Force a redraw.
  56. .It Ic \&!
  57. Spawn an sh shell in current directory.
  58. .It Ic z
  59. Run the system top utility.
  60. .It Ic e
  61. Open selected entry with the vi editor.
  62. .It Ic p
  63. Open selected entry with the less pager.
  64. .It Ic q
  65. Quit.
  66. .El
  67. .Pp
  68. Backing up one directory level will set the cursor position at the
  69. directory you came out of.
  70. .Sh CONFIGURATION
  71. .Nm
  72. is configured by modifying
  73. .Pa config.h
  74. and recompiling the code.
  75. .Pp
  76. The file associations are specified by regexes
  77. matching on the currently selected filename. If a match is found the associated
  78. program is executed with the filename passed in as the argument. If no match
  79. is found the program
  80. .Xr less 1
  81. is invoked. This is useful for editing text files
  82. as one can use the 'v' command in
  83. .Xr less 1 to edit the file using the EDITOR environment variable.
  84. .Pp
  85. See the examples section below for more information.
  86. .Sh FILTERS
  87. Filters allow you to use regexes to display only the matched
  88. entries in the current directory view. This effectively allows
  89. searching through the directory tree for a particular entry.
  90. .Pp
  91. Filters do not stack on top of each other. They are applied anew
  92. every time.
  93. .Pp
  94. To reset the filter you can input an empty filter expression.
  95. .Pp
  96. If
  97. .Nm
  98. is invoked as root the default filter will also match hidden
  99. files.
  100. .Sh ENVIRONMENT
  101. The SHELL, EDITOR and PAGER environment variables take precedence
  102. when dealing with the !, e and p commands respectively.
  103. .Sh EXAMPLES
  104. The following example shows one possible configuration for
  105. file associations which is also the default:
  106. .Bd -literal
  107. struct assoc assocs[] = {
  108. { "\\.(avi|mp4|mkv|mp3|ogg|flac|mov)$", "mplayer" },
  109. { "\\.(png|jpg|gif)$", "feh" },
  110. { "\\.(html|svg)$", "firefox" },
  111. { "\\.pdf$", "mupdf" },
  112. { "\\.sh$", "sh" },
  113. { ".", "less" },
  114. };
  115. .Ed
  116. .Sh KNOWN ISSUES
  117. If you are using urxvt you might have to set backspacekey to DEC.
  118. .Sh AUTHORS
  119. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  120. .An Dimitris Papastamos Aq Mt sin@2f30.org .