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

107 строки
2.8 KiB

  1. .Dd November 14, 2014
  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 l, [Right], [Return] or C-m
  41. Open file or enter directory.
  42. .It Ic h, [Left] or [Backspace]
  43. Back up one directory level.
  44. .It Ic / or &
  45. Change filter (see below for more information).
  46. .It Ic c
  47. Change into the given directory.
  48. .It Ic !
  49. Spawn shell in current directory.
  50. .It Ic q
  51. Quit.
  52. .El
  53. .Pp
  54. Backing up one directory level will set the cursor position at the
  55. directory you came out of.
  56. .Sh CONFIGURATION
  57. .Nm
  58. is configured by modifying
  59. .Pa config.h
  60. and recompiling the code.
  61. .Pp
  62. The file associations are specified by regexes
  63. matching on the currently selected filename. If a match is found the associated
  64. program is executed with the filename passed in as the argument. If no match
  65. is found the program
  66. .Xr less 1
  67. is invoked. This is useful for editing text files
  68. as one can use the 'v' command in
  69. .Xr less 1 to edit the file in $EDITOR.
  70. .Pp
  71. See the examples section below for more information.
  72. .Sh FILTERS
  73. Filters allow you to use regexes to display only the matched
  74. entries in the current directory view. This effectively allows
  75. searching through the directory tree for a particular entry.
  76. .Pp
  77. Filters do not stack on top of each other. They are applied anew
  78. every time.
  79. .Pp
  80. To reset the filter you can use the match-any regex (i.e. '.').
  81. .Pp
  82. If
  83. .Nm
  84. is invoked as root the default filter will also match hidden
  85. files.
  86. .Sh EXAMPLES
  87. The following example shows one possible configuration for
  88. file associations which is also the default:
  89. .Bd -literal
  90. struct assoc assocs[] = {
  91. { "\\.(avi|mp4|mkv|mp3|ogg|flac)$", "mplayer" },
  92. { "\\.(png|jpg|gif)$", "feh" },
  93. { "\\.(html|svg)$", "firefox" },
  94. { "\\.pdf$", "mupdf" },
  95. { "\\.sh$", "sh" },
  96. { ".", "less" },
  97. };
  98. .Ed
  99. .Sh KNOWN ISSUES
  100. If you are using urxvt you might have to start it with
  101. backspacekey set to DEC.
  102. .Pp
  103. .Sh AUTHORS
  104. .Nm
  105. was developed by Lazaros Koromilas <lostd@2f30.org> with
  106. contributions by sin <sin@2f30.org>.