summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-10-06 17:34:55 +0300
committerThanos Apollo <[email protected]>2023-10-06 17:34:55 +0300
commitd977140b61a8133c8db3df857ae271579484f746 (patch)
tree196a929ac69173b4e9fec06853b36992c0abae13 /.config
parent58f084133169d6dcdc2a68ec2361bb6108b3e5e6 (diff)
nyxt: Update keybindings & default search engine
Diffstat (limited to '.config')
-rw-r--r--.config/nyxt/config.lisp3
-rw-r--r--.config/nyxt/keybinds.lisp57
2 files changed, 31 insertions, 29 deletions
diff --git a/.config/nyxt/config.lisp b/.config/nyxt/config.lisp
index fa4416e..32e4b17 100644
--- a/.config/nyxt/config.lisp
+++ b/.config/nyxt/config.lisp
@@ -48,7 +48,8 @@ loads."
'("google" "https://google.com/search?q=~a" "https://google.com")
'("doi" "https://dx.doi.org/~a" "https://dx.doi.org/")
'("duck" "https://duckduckgo.com/?q=~a" "https://duckudckgo.com")
- '("thanos" "https://search.thanosapollo.com/searxng/search?q=~a"))
+ ;'("thanos" "https://search.thanosapollo.com/searxng/search?q=~a")
+ )
"List of search engines.")
(define-configuration context-buffer
diff --git a/.config/nyxt/keybinds.lisp b/.config/nyxt/keybinds.lisp
index 2eb5116..4bc9a0c 100644
--- a/.config/nyxt/keybinds.lisp
+++ b/.config/nyxt/keybinds.lisp
@@ -4,31 +4,32 @@
"Add basic keybindings."
((keyscheme-map
(keymaps:define-keyscheme-map
- "custom" (list :import %slot-value%)
- ;; If you want to have VI bindings overriden, just use
- ;; `scheme:vi-normal' or `scheme:vi-insert' instead of
- ;; `scheme:emacs'.
- nyxt/keyscheme:emacs
- (list "C-c p" 'copy-password
- "C-c y" 'autofill
- "C-f" :history-forwards-maybe-query
- "C-i" :input-edit-mode
- "M-:" 'eval-expression
- "C-s" :search-buffer
- "C-x 3" 'hsplit
- "C-x 1" 'close-all-panels
- "C-'" (lambda-command insert-left-angle-quote ()
- (ffi-buffer-paste (current-buffer) "«"))
- "C-M-'" (lambda-command insert-left-angle-quote ()
- (ffi-buffer-paste (current-buffer) "»"))
- "C-M-hyphen" (lambda-command insert-left-angle-quote ()
- (ffi-buffer-paste (current-buffer) "—"))
- "C-M-_" (lambda-command insert-left-angle-quote ()
- (ffi-buffer-paste (current-buffer) "–"))
- "C-E" (lambda-command small-e-with-acute ()
- (ffi-buffer-paste (current-buffer) "é"))
- "C-A" (lambda-command small-a-with-acute ()
- (ffi-buffer-paste (current-buffer) "á"))
- "C-I" (lambda-command small-i-diaeresis ()
- (ffi-buffer-paste (current-buffer) "ï"))
- "C-h hyphen" 'clcs-lookup)))))
+ "custom" (list :import %slot-value%)
+ ;; If you want to have VI bindings overriden, just use
+ ;; `scheme:vi-normal' or `scheme:vi-insert' instead of
+ ;; `scheme:emacs'.
+ nyxt/keyscheme:emacs
+ (list "C-c p" 'copy-password
+ "C-c u" 'copy-username
+ "C-c y" 'autofill
+ "C-f" :history-forwards-maybe-query
+ "C-i" :input-edit-mode
+ "M-:" 'eval-expression
+ "C-s" :search-buffer
+ "C-x 3" 'hsplit
+ "C-x 1" 'close-all-panels
+ "C-'" (lambda-command insert-left-angle-quote ()
+ (ffi-buffer-paste (current-buffer) "«"))
+ "C-M-'" (lambda-command insert-left-angle-quote ()
+ (ffi-buffer-paste (current-buffer) "»"))
+ "C-M-hyphen" (lambda-command insert-left-angle-quote ()
+ (ffi-buffer-paste (current-buffer) "—"))
+ "C-M-_" (lambda-command insert-left-angle-quote ()
+ (ffi-buffer-paste (current-buffer) "–"))
+ "C-E" (lambda-command small-e-with-acute ()
+ (ffi-buffer-paste (current-buffer) "é"))
+ "C-A" (lambda-command small-a-with-acute ()
+ (ffi-buffer-paste (current-buffer) "á"))
+ "C-I" (lambda-command small-i-diaeresis ()
+ (ffi-buffer-paste (current-buffer) "ï"))
+ "C-h hyphen" 'clcs-lookup)))))