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.

noice.1 2.7 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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.
  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 "l | Right | Return | C-mXXXX" -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 | Return | 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 information).
  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 HISTORY
  77. .Nm
  78. remembers the old path. Backing up one directory level will set the
  79. cursor position at the directory you came out of.
  80. .Sh EXAMPLES
  81. The following example shows one possible configuration for
  82. file associations. This is the default configuration for
  83. .Nm .
  84. .Bd -literal
  85. struct assoc assocs[] = {
  86. { "\\.(avi|mp4|mkv|mp3|ogg|flac)$", "mplayer" },
  87. { "\\.(png|jpg|gif)$", "feh" },
  88. { "\\.(html|svg)$", "firefox" },
  89. { "\\.pdf$", "mupdf" },
  90. { "\\.sh$", "sh" },
  91. { ".*", "less" },
  92. };
  93. .Ed
  94. .Sh KNOWN ISSUES
  95. If you are using urxvt you might have to start it with
  96. backspacekey set to DEC.
  97. .Pp
  98. .Sh AUTHORS
  99. .Nm
  100. was developed by Lazaros Koromilas <lostd@2f30.org> with
  101. contributions by sin <sin@2f30.org>.