about summary refs log tree commit diff stats
path: root/modules/home/conf/less
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-18 17:07:46 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-18 17:07:46 +0200
commitc52c7f314ccadcc2fcd91e28c8fd1b88f6d5ce0c (patch)
treee8b947710b467b32740598ff574982097836f66c /modules/home/conf/less
parentchore(pkgs/yt): 1.2.1 -> 1.3.0 (diff)
downloadnixos-config-c52c7f314ccadcc2fcd91e28c8fd1b88f6d5ce0c.tar.gz
nixos-config-c52c7f314ccadcc2fcd91e28c8fd1b88f6d5ce0c.zip
refactor(modules): Move all system modules to `by-name`
From now on all modules should be added to the new `by-name` directory.
This should help remove the (superficial and utterly useless)
distinction between `home-manager` and `NixOS` modules.
Diffstat (limited to 'modules/home/conf/less')
-rw-r--r--modules/home/conf/less/command.less127
-rw-r--r--modules/home/conf/less/default.nix18
-rw-r--r--modules/home/conf/less/env.less2
-rw-r--r--modules/home/conf/less/line-edit.less29
4 files changed, 0 insertions, 176 deletions
diff --git a/modules/home/conf/less/command.less b/modules/home/conf/less/command.less
deleted file mode 100644
index 95b79b02..00000000
--- a/modules/home/conf/less/command.less
+++ /dev/null
@@ -1,127 +0,0 @@
-#command
-\r         forw-line
-\n         forw-line
-e          forw-line
-t          forw-line
-\kd        forw-line
-ˆE         forw-line
-ˆN         forw-line
-n          back-line
-y          back-line
-ˆY         back-line
-ˆK         back-line
-ˆP         back-line
-T          forw-line-force
-N          back-line-force
-Y          back-line-force
-d          forw-scroll
-ˆD         forw-scroll
-u          back-scroll
-ˆU         back-scroll
-\40        forw-screen
-f          forw-screen
-ˆF         forw-screen
-ˆV         forw-screen
-\kD        forw-screen
-b          back-screen
-ˆB         back-screen
-\ev        back-screen
-\kU        back-screen
-z          forw-window
-w          back-window
-\e\40      forw-screen-force
-F          forw-forever
-\eF        forw-until-hilite
-R          repaint-flush
-r          repaint
-ˆR         repaint
-ˆL         repaint
-\en        undo-hilite
-\eU        clear-search
-g          goto-line
-\kh        goto-line
-<          goto-line
-\e<        goto-line
-p          percent
-%          percent
-\e[        left-scroll
-\e]        right-scroll
-\e(        left-scroll
-\e)        right-scroll
-\kl        left-scroll
-\kr        right-scroll
-\e{        no-scroll
-\e}        end-scroll
-{          forw-bracket {}
-}          back-bracket {}
-(          forw-bracket ()
-)          back-bracket ()
-[          forw-bracket []
-]          back-bracket []
-\eˆF       forw-bracket
-\eˆB       back-bracket
-G          goto-end
-\e>        goto-end
->          goto-end
-\ke        goto-end
-\eG        goto-end-buffered
-=          status
-ˆG         status
-:f         status
-/          forw-search
-?          back-search
-\e/        forw-search *
-\e?        back-search *
-l          repeat-search
-\el        repeat-search-all
-L          reverse-search
-\eL        reverse-search-all
-&          filter
-m          set-mark
-M          set-mark-bottom
-\em        clear-mark
-'          goto-mark
-ˆXˆX       goto-mark
-E          examine
-:e         examine
-ˆXˆV       examine
-:n         next-file
-:p         prev-file
-j          next-tag
-J          prev-tag
-:x         index-file
-:d         remove-file
--          toggle-option
-:t         toggle-option t
-s          toggle-option o
-           ## Use a long option name by starting the
-           ## extra string with ONE dash; eg:
-           ##   s toggle-option -log-file\n
-_          display-option
-|          pipe
-v          visual
-!          shell
-#          pshell
-+          firstcmd
-H          help
-h          help
-V          version
-0          digit
-1          digit
-2          digit
-3          digit
-4          digit
-5          digit
-6          digit
-7          digit
-8          digit
-9          digit
-q          quit
-Q          quit
-:q         quit
-:Q         quit
-ZZ         quit
-
-# Stop processing (and ignore less' default values)
-# (// FIXME: This stopped working and thus we just comment it out <2024-08-03> )
-# stop
diff --git a/modules/home/conf/less/default.nix b/modules/home/conf/less/default.nix
deleted file mode 100644
index 9991ebef..00000000
--- a/modules/home/conf/less/default.nix
+++ /dev/null
@@ -1,18 +0,0 @@
-{config, ...}: {
-  home.sessionVariables = {
-    PAGER = "less";
-    MANPAGER = "less --color=d+r --color=u+b";
-
-    # These are added here because adding them in the lesskey file somehow doesn't work.
-    LESSHISTSIZE = 10000;
-    LESSHISTFILE = "${config.xdg.dataHome}/less/history";
-  };
-
-  programs.less = {
-    enable = true;
-    keys =
-      builtins.readFile ./command.less
-      + builtins.readFile ./line-edit.less
-      + builtins.readFile ./env.less;
-  };
-}
diff --git a/modules/home/conf/less/env.less b/modules/home/conf/less/env.less
deleted file mode 100644
index 30f7645d..00000000
--- a/modules/home/conf/less/env.less
+++ /dev/null
@@ -1,2 +0,0 @@
-#env
-LESS = -R --use-color --incsearch --modelines=2 --save-marks --wordwrap --status-line
diff --git a/modules/home/conf/less/line-edit.less b/modules/home/conf/less/line-edit.less
deleted file mode 100644
index a7e889db..00000000
--- a/modules/home/conf/less/line-edit.less
+++ /dev/null
@@ -1,29 +0,0 @@
-#line-edit
-\t           forw-complete
-\17          back-complete
-\e\t         back-complete
-ˆL           expand
-ˆV           literal
-ˆA           literal
-\es          right
-\kr          right
-\eh          left
-\kl          left
-\eb          word-left
-\e\kl        word-left
-\ew          word-right
-\e\kr        word-right
-\ei          insert
-\ex          delete
-\kx          delete
-\eX          word-delete
-\ekx         word-delete
-\e\b         word-backspace
-\e0          home
-\kh          home
-\e$          end
-\ke          end
-\en          up
-\ku          up
-\et          down
-ˆG           abort