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.
 
 
 
 
 
 

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