My build of nnn with minor changes
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

123 строки
3.3 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 \&?
  51. Enter filter-as-you-type mode.
  52. .It Ic c
  53. Change into the given directory.
  54. .It Ic t
  55. Toggle sort by time modified.
  56. .It Ic C-l
  57. Force a redraw.
  58. .It Ic \&!
  59. Spawn an sh shell in current directory.
  60. .It Ic z
  61. Run the system top utility.
  62. .It Ic e
  63. Open selected entry with the vi editor.
  64. .It Ic p
  65. Open selected entry with the less pager.
  66. .It Ic q
  67. Quit.
  68. .El
  69. .Pp
  70. Backing up one directory level will set the cursor position at the
  71. directory you came out of.
  72. .Sh CONFIGURATION
  73. .Nm
  74. is configured by modifying
  75. .Pa config.h
  76. and recompiling the code.
  77. .Pp
  78. The file associations are specified by regexes
  79. matching on the currently selected filename. If a match is found the associated
  80. program is executed with the filename passed in as the argument. If no match
  81. is found the program
  82. .Xr less 1
  83. is invoked. This is useful for editing text files
  84. as one can use the 'v' command in
  85. .Xr less 1 to edit the file using the EDITOR environment variable.
  86. .Pp
  87. See the examples section below for more information.
  88. .Sh FILTERS
  89. Filters allow you to use regexes to display only the matched
  90. entries in the current directory view. This effectively allows
  91. searching through the directory tree for a particular entry.
  92. .Pp
  93. Filters do not stack on top of each other. They are applied anew
  94. every time.
  95. .Pp
  96. To reset the filter you can input an empty filter expression.
  97. .Pp
  98. If
  99. .Nm
  100. is invoked as root the default filter will also match hidden
  101. files.
  102. .Sh ENVIRONMENT
  103. The SHELL, EDITOR and PAGER environment variables take precedence
  104. when dealing with the !, e and p commands respectively.
  105. .Sh EXAMPLES
  106. The following example shows one possible configuration for
  107. file associations which is also the default:
  108. .Bd -literal
  109. struct assoc assocs[] = {
  110. { "\\.(avi|mp4|mkv|mp3|ogg|flac|mov)$", "mplayer" },
  111. { "\\.(png|jpg|gif)$", "feh" },
  112. { "\\.(html|svg)$", "firefox" },
  113. { "\\.pdf$", "mupdf" },
  114. { "\\.sh$", "sh" },
  115. { ".", "less" },
  116. };
  117. .Ed
  118. .Sh KNOWN ISSUES
  119. If you are using urxvt you might have to set backspacekey to DEC.
  120. .Sh AUTHORS
  121. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  122. .An Dimitris Papastamos Aq Mt sin@2f30.org .