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.
 
 
 
 
 
 

84 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. .Sh CONFIGURATION
  44. .Nm
  45. is configured by modifying
  46. .Pa config.h
  47. and recompiling the code.
  48. .Pp
  49. The file associations are specified by regexes
  50. matching on the currently selected filename. If a match is found the associated
  51. program is executed with the filename passed in as the argument. If no match
  52. is found the program less(1) is invoked. This is useful for editing text files
  53. as one can use the 'v' command in less(1) to edit the file in $EDITOR.
  54. .Pp
  55. See the examples section below for more information.
  56. .Sh FILTERS
  57. Filters allow you to use regexes to display only the matched
  58. entries in the current directory view. This effectively allows
  59. searching through the directory tree for a particular entry.
  60. .Pp
  61. Filters do not stack on top of each other. They are applied anew
  62. every time.
  63. .Pp
  64. To reset the filter you can use the match-any regex (i.e. '.').
  65. .Sh EXAMPLES
  66. The following example shows one possible configuration for
  67. file associations. This is the default configuration for
  68. .Nm .
  69. .Bd -literal
  70. struct assoc assocs[] = {
  71. { "\\.(avi|mp4|mkv|mp3|ogg|flac)$", "mplayer" },
  72. { "\\.(png|jpg|gif)$", "feh" },
  73. { "\\.(html|svg)$", "firefox" },
  74. { "\\.pdf$", "mupdf" },
  75. { "\\.sh$", "sh" },
  76. { ".*", "less" },
  77. };
  78. .Ed
  79. .Pp
  80. .Sh AUTHORS
  81. .Nm
  82. was developed by Lazaros Koromilas <lostd@2f30.org> with
  83. contributions by sin <sin@2f30.org>.