pop-os: Set filter mode to “directory”
This commit is contained in:
parent
f8da6b40ba
commit
3d260419ee
2 changed files with 13 additions and 2 deletions
|
@ -134,7 +134,8 @@
|
|||
(service home-zsh-contextual-abbrevs-service-type)
|
||||
(service home-zsh-atuin-service-type
|
||||
(home-zsh-atuin-configuration
|
||||
(inline-height 20)))
|
||||
(inline-height 20)
|
||||
(filter-mode 'directory)))
|
||||
|
||||
(service home-stumpwm-service-type
|
||||
(home-stumpwm-configuration
|
||||
|
|
|
@ -146,13 +146,23 @@
|
|||
(define (serialize-integer field value)
|
||||
(format #f "~a = ~a" (string-replace-substring (symbol->string field) "-" "_") value))
|
||||
|
||||
(define (serialize-filter-mode field value)
|
||||
(format #f "~a = ~s~%" (string-replace-substring (symbol->string field) "-" "_")
|
||||
(symbol->string value)))
|
||||
|
||||
(define (filter-mode? value)
|
||||
(memq value '(global host session directory workspace)))
|
||||
|
||||
(define-configuration home-zsh-atuin-configuration
|
||||
(package
|
||||
(package rust-atuin-18)
|
||||
"Package to use for setting atuin.")
|
||||
(inline-height
|
||||
(integer 40)
|
||||
"Set the maximum number of lines Atuin’s interface should take up."))
|
||||
"Set the maximum number of lines Atuin’s interface should take up.")
|
||||
(filter-mode
|
||||
(filter-mode 'global)
|
||||
"The default filter to use when searching"))
|
||||
|
||||
(define (add-zsh-atuin config)
|
||||
(home-zsh-extension
|
||||
|
|
Loading…
Add table
Reference in a new issue