feat: add support to insert symbols as valid position and name entries in the abbreviation record on (radix home services shells)

pull/1/head
anemofilia 2023-09-25 00:58:04 -03:00
parent d06288ad8e
commit ecd5d2c56f
No known key found for this signature in database
GPG Key ID: 5A8F3D62C87A2B33
1 changed files with 4 additions and 4 deletions

View File

@ -47,10 +47,10 @@
(define-record-type* <abbreviation>
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)