My build of nnn with minor changes
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

107 行
2.9 KiB

  1. .Dd Oct 22, 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 | C-mXXXX" -offset indent -compact
  32. .It Ic k | Up | C-p
  33. Move to previous entry.
  34. .It Ic j | Down | C-n
  35. Move to next entry.
  36. .It Ic Pgup | C-u
  37. Scroll backwards one page.
  38. .It Ic Pgdown | C-d
  39. Scroll forwards one page.
  40. .It Ic l | Right | Return | C-m
  41. Open file or enter directory.
  42. .It Ic h | Left | Backspace
  43. Back up one directory level.
  44. .It Ic / | &
  45. Filter view (see below for more information).
  46. .It Ic !
  47. Spawn shell in current directory.
  48. .It Ic c
  49. Change into the given directory.
  50. .It Ic q
  51. Quit
  52. .Nm .
  53. .El
  54. .Sh CONFIGURATION
  55. .Nm
  56. is configured by modifying
  57. .Pa config.h
  58. and recompiling the code.
  59. .Pp
  60. The file associations are specified by regexes
  61. matching on the currently selected filename. If a match is found the associated
  62. program is executed with the filename passed in as the argument. If no match
  63. is found the program less(1) is invoked. This is useful for editing text files
  64. as one can use the 'v' command in less(1) to edit the file in $EDITOR.
  65. .Pp
  66. See the examples section below for more information.
  67. .Sh FILTERS
  68. Filters allow you to use regexes to display only the matched
  69. entries in the current directory view. This effectively allows
  70. searching through the directory tree for a particular entry.
  71. .Pp
  72. Filters do not stack on top of each other. They are applied anew
  73. every time.
  74. .Pp
  75. To reset the filter you can use the match-any regex (i.e. '.').
  76. .Pp
  77. If
  78. .Nm
  79. is invoked as root the default filter will also match hidden
  80. files.
  81. .Sh HISTORY
  82. .Nm
  83. remembers the old path. Backing up one directory level will set the
  84. cursor position at the directory you came out of.
  85. .Sh EXAMPLES
  86. The following example shows one possible configuration for
  87. file associations. This is the default configuration for
  88. .Nm .
  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>.