My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

135 lines
3.7 KiB

  1. .Dd August 21, 2016
  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 ~
  53. Change to the HOME directory.
  54. .It Ic \&.
  55. Toggle hide .dot files.
  56. .It Ic t
  57. Toggle sort by time modified.
  58. .It Ic C-l
  59. Force a redraw.
  60. .It Ic \&!
  61. Spawn a shell in current directory.
  62. .It Ic z
  63. Run the system top utility.
  64. .It Ic e
  65. Open selected entry with the vi editor.
  66. .It Ic p
  67. Open selected entry with the less pager.
  68. .It Ic q
  69. Quit.
  70. .El
  71. .Pp
  72. Backing up one directory level will set the cursor position at the
  73. directory you came out of.
  74. .Sh CONFIGURATION
  75. .Nm
  76. is configured by modifying
  77. .Pa config.h
  78. and recompiling the code.
  79. .Pp
  80. The file associations are specified by regexes
  81. matching on the currently selected filename. If a match is found the associated
  82. program is executed with the filename passed in as the argument. If no match
  83. is found the program
  84. .Xr less 1
  85. is invoked. This is useful for editing text files
  86. as one can use the 'v' command in
  87. .Xr less 1 to edit the file using the EDITOR environment variable.
  88. .Pp
  89. See the examples section below for more information.
  90. .Sh FILTERS
  91. Filters allow you to use regexes to display only the matched
  92. entries in the current directory view. This effectively allows
  93. searching through the directory tree for a particular entry.
  94. .Pp
  95. Filters do not stack on top of each other. They are applied anew
  96. every time.
  97. .Pp
  98. To reset the filter you can input an empty filter expression.
  99. .Pp
  100. If
  101. .Nm
  102. is invoked as root the default filter will also match hidden
  103. files.
  104. .Sh ENVIRONMENT
  105. The SHELL, EDITOR and PAGER environment variables take precedence
  106. when dealing with the !, e and p commands respectively.
  107. .Pp
  108. \fBNOICE_OPENER:\fR set to your desktop environment's default
  109. mime opener to override all custom mime associations.
  110. .br
  111. Examples: xdg-open, gnome-open, gvfs-open.
  112. .Sh EXAMPLES
  113. The following example shows one possible configuration for
  114. file associations which is also the default if environment
  115. variable NOICE_OPENER is not set:
  116. .Bd -literal
  117. struct assoc assocs[] = {
  118. { "\\.(c|cpp|h|txt|log)$", "vim" },
  119. { "\\.pdf$", "zathura" },
  120. { "\\.sh$", "sh" },
  121. };
  122. Plain text files are opened with vim.
  123. .br
  124. Any other file types are opened with the 'xdg-open' command.
  125. .Ed
  126. .Sh KNOWN ISSUES
  127. If you are using urxvt you might have to set backspacekey to DEC.
  128. .Sh AUTHORS
  129. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  130. .An Dimitris Papastamos Aq Mt sin@2f30.org .
  131. .Pp
  132. ** The current non-mainstream version is a modified one patched by Arun Prakash Jana <engineerarun@gmail.com>.
  133. .br
  134. More details: https://github.com/jarun/noice