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.

10 年之前
10 年之前
10 年之前
10 年之前
10 年之前
10 年之前
10 年之前
10 年之前
10 年之前
10 年之前
10 年之前
10 年之前
10 年之前
10 年之前
10 年之前
10 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. .Dd March 12, 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 or ^
  41. Move to the first entry.
  42. .It Ic [End] or C-e or $
  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, [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 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 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 in $EDITOR.
  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 EXAMPLES
  101. The following example shows one possible configuration for
  102. file associations which is also the default:
  103. .Bd -literal
  104. struct assoc assocs[] = {
  105. { "\\.(avi|mp4|mkv|mp3|ogg|flac|mov)$", "mplayer" },
  106. { "\\.(png|jpg|gif)$", "feh" },
  107. { "\\.(html|svg)$", "firefox" },
  108. { "\\.pdf$", "mupdf" },
  109. { "\\.sh$", "sh" },
  110. { ".", "less" },
  111. };
  112. .Ed
  113. .Sh KNOWN ISSUES
  114. If you are using urxvt you might have to set backspacekey to DEC.
  115. .Sh AUTHORS
  116. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  117. .An Dimitris Papastamos Aq Mt sin@2f30.org .