From ecd5d2c56fb84eeb4b252bbb612db27b75e05a77 Mon Sep 17 00:00:00 2001 From: anemofilia Date: Mon, 25 Sep 2023 00:58:04 -0300 Subject: [PATCH] feat: add support to insert symbols as valid position and name entries in the abbreviation record on (radix home services shells) --- modules/radix/home/services/shells.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/radix/home/services/shells.scm b/modules/radix/home/services/shells.scm index 61bc8a1..eee699c 100644 --- a/modules/radix/home/services/shells.scm +++ b/modules/radix/home/services/shells.scm @@ -47,10 +47,10 @@ (define-record-type* abbreviation make-abbreviation abbreviation? - (name abbreviation-name) ; string + (name abbreviation-name) ; string | symbol (pattern abbreviation-pattern ; string | #f (default #f)) - (position abbreviation-position ; "command" | "anywhere" | #f + (position abbreviation-position ; 'command | 'anywhere | #f (default #f)) ; defaults to "command" -ยด (marker abbreviation-marker ; char (default #\%)) @@ -70,8 +70,8 @@ ~@[--regex ~a ~]~ --set-cursor=~a ~ ~a~%" - #$name - #$position + '#$name + '#$position #$pattern #$marker #$(if (fish-function? expansion)