My build of nnn with minor changes
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

95 lines
2.5 KiB

  1. .Dd Oct 22, 2014
  2. .Dt NOICE 1
  3. .Os
  4. .Sh NAME
  5. .Nm noice
  6. .Nd small file manager
  7. .Sh SYNOPSIS
  8. .Nm noice
  9. .Op Ar dir
  10. .Sh DESCRIPTION
  11. .Nm
  12. is a simple and efficient file manager 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.
  20. .Pp
  21. .Nm
  22. supports both vi-like and emacs-like key bindings in the default
  23. configuration. The default key bindings are described below;
  24. their functionality is described in more detail later.
  25. .Pp
  26. .Bl -tag -width "h | Left | BackspaceXXXX" -offset indent -compact
  27. .It Ic k | Up | C-p
  28. Move to previous entry.
  29. .It Ic j | Down | C-n
  30. Move to next entry.
  31. .It Ic Pgup | C-u
  32. Scroll backwards one page.
  33. .It Ic Pgdown | C-d
  34. Scroll forwards one page.
  35. .It Ic l | Right | C-m
  36. Open file or enter directory.
  37. .It Ic h | Left | Backspace
  38. Back up one directory level.
  39. .It Ic / | &
  40. Filter view (see below for more details).
  41. .It Ic !
  42. Spawn shell in current directory.
  43. .It Ic c
  44. Change into the given directory.
  45. .It Ic q
  46. Quit
  47. .Nm .
  48. .El
  49. .Sh CONFIGURATION
  50. .Nm
  51. is configured by modifying
  52. .Pa config.h
  53. and recompiling the code.
  54. .Pp
  55. The file associations are specified by regexes
  56. matching on the currently selected filename. If a match is found the associated
  57. program is executed with the filename passed in as the argument. If no match
  58. is found the program less(1) is invoked. This is useful for editing text files
  59. as one can use the 'v' command in less(1) to edit the file in $EDITOR.
  60. .Pp
  61. See the examples section below for more information.
  62. .Sh FILTERS
  63. Filters allow you to use regexes to display only the matched
  64. entries in the current directory view. This effectively allows
  65. searching through the directory tree for a particular entry.
  66. .Pp
  67. Filters do not stack on top of each other. They are applied anew
  68. every time.
  69. .Pp
  70. To reset the filter you can use the match-any regex (i.e. '.').
  71. .Pp
  72. If
  73. .Nm
  74. is invoked as root the default filter will also match hidden
  75. files.
  76. .Sh EXAMPLES
  77. The following example shows one possible configuration for
  78. file associations. This is the default configuration for
  79. .Nm .
  80. .Bd -literal
  81. struct assoc assocs[] = {
  82. { "\\.(avi|mp4|mkv|mp3|ogg|flac)$", "mplayer" },
  83. { "\\.(png|jpg|gif)$", "feh" },
  84. { "\\.(html|svg)$", "firefox" },
  85. { "\\.pdf$", "mupdf" },
  86. { "\\.sh$", "sh" },
  87. { ".*", "less" },
  88. };
  89. .Ed
  90. .Pp
  91. .Sh AUTHORS
  92. .Nm
  93. was developed by Lazaros Koromilas <lostd@2f30.org> with
  94. contributions by sin <sin@2f30.org>.