My build of nnn with minor changes
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

config.def.h 2.0 KiB

il y a 8 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* See LICENSE file for copyright and license details. */
  2. #define CWD "cwd: "
  3. #define CURSR " > "
  4. #define EMPTY " "
  5. int mtimeorder = 0; /* Set to 1 to sort by time modified */
  6. int idletimeout = 0; /* Screensaver timeout in seconds, 0 to disable */
  7. char *idlecmd = "rain"; /* The screensaver program */
  8. struct assoc assocs[] = {
  9. //{ "\\.(avi|mp4|mkv|mp3|ogg|flac|mov)$", "mpv" },
  10. { "\\.(c|cpp|h|txt|log)$", "vim" },
  11. { "\\.(wma|mp3|ogg|flac)$", "fmedia" },
  12. //{ "\\.(png|jpg|gif)$", "feh" },
  13. //{ "\\.(html|svg)$", "firefox" },
  14. { "\\.pdf$", "zathura" },
  15. { "\\.sh$", "sh" },
  16. //{ ".", "less" },
  17. };
  18. struct key bindings[] = {
  19. /* Quit */
  20. { 'q', SEL_QUIT },
  21. /* Back */
  22. { KEY_BACKSPACE, SEL_BACK },
  23. { KEY_LEFT, SEL_BACK },
  24. { 'h', SEL_BACK },
  25. { CONTROL('H'), SEL_BACK },
  26. /* Inside */
  27. { KEY_ENTER, SEL_GOIN },
  28. { '\r', SEL_GOIN },
  29. { KEY_RIGHT, SEL_GOIN },
  30. { 'l', SEL_GOIN },
  31. /* Filter */
  32. { '/', SEL_FLTR },
  33. { '&', SEL_FLTR },
  34. /* Next */
  35. { 'j', SEL_NEXT },
  36. { KEY_DOWN, SEL_NEXT },
  37. { CONTROL('N'), SEL_NEXT },
  38. /* Previous */
  39. { 'k', SEL_PREV },
  40. { KEY_UP, SEL_PREV },
  41. { CONTROL('P'), SEL_PREV },
  42. /* Page down */
  43. { KEY_NPAGE, SEL_PGDN },
  44. { CONTROL('D'), SEL_PGDN },
  45. /* Page up */
  46. { KEY_PPAGE, SEL_PGUP },
  47. { CONTROL('U'), SEL_PGUP },
  48. /* Home */
  49. { KEY_HOME, SEL_HOME },
  50. { CONTROL('A'), SEL_HOME },
  51. { '^', SEL_HOME },
  52. /* End */
  53. { KEY_END, SEL_END },
  54. { CONTROL('E'), SEL_END },
  55. { '$', SEL_END },
  56. /* Change dir */
  57. { 'c', SEL_CD },
  58. { '~', SEL_CDHOME },
  59. /* Toggle hide .dot files */
  60. { '.', SEL_TOGGLEDOT },
  61. /* Toggle sort by time */
  62. { 't', SEL_MTIME },
  63. { CONTROL('L'), SEL_REDRAW },
  64. /* Run command */
  65. { 'z', SEL_RUN, "top" },
  66. { '!', SEL_RUN, "sh", "SHELL" },
  67. /* Run command with argument */
  68. { 'e', SEL_RUNARG, "vi", "EDITOR" },
  69. { 'p', SEL_RUNARG, "less", "PAGER" },
  70. };