feat: add support to insert symbols as valid position and name entries in the abbreviation record on (radix home services shells)
parent
d06288ad8e
commit
ecd5d2c56f
|
@ -47,10 +47,10 @@
|
||||||
(define-record-type* <abbreviation>
|
(define-record-type* <abbreviation>
|
||||||
abbreviation make-abbreviation
|
abbreviation make-abbreviation
|
||||||
abbreviation?
|
abbreviation?
|
||||||
(name abbreviation-name) ; string
|
(name abbreviation-name) ; string | symbol
|
||||||
(pattern abbreviation-pattern ; string | #f
|
(pattern abbreviation-pattern ; string | #f
|
||||||
(default #f))
|
(default #f))
|
||||||
(position abbreviation-position ; "command" | "anywhere" | #f
|
(position abbreviation-position ; 'command | 'anywhere | #f
|
||||||
(default #f)) ; defaults to "command" -´
|
(default #f)) ; defaults to "command" -´
|
||||||
(marker abbreviation-marker ; char
|
(marker abbreviation-marker ; char
|
||||||
(default #\%))
|
(default #\%))
|
||||||
|
@ -70,8 +70,8 @@
|
||||||
~@[--regex ~a ~]~
|
~@[--regex ~a ~]~
|
||||||
--set-cursor=~a ~
|
--set-cursor=~a ~
|
||||||
~a~%"
|
~a~%"
|
||||||
#$name
|
'#$name
|
||||||
#$position
|
'#$position
|
||||||
#$pattern
|
#$pattern
|
||||||
#$marker
|
#$marker
|
||||||
#$(if (fish-function? expansion)
|
#$(if (fish-function? expansion)
|
||||||
|
|
Loading…
Reference in New Issue