From b619303c7bffdc570c6a0dd867341cb078f5f63a Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sat, 9 Sep 2023 14:47:33 +1000 Subject: [nyxt] Update config documenting problems with hint-prompt binding --- misc/.config/nyxt/config.lisp | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/misc/.config/nyxt/config.lisp b/misc/.config/nyxt/config.lisp index 669724e..ec430ec 100644 --- a/misc/.config/nyxt/config.lisp +++ b/misc/.config/nyxt/config.lisp @@ -22,7 +22,8 @@ ;;; Commentary: -;; My nyxt config. +;; My nyxt config. It is not usable yet - see the part with +;; prompt-buffer-mode binding ;;; Code: @@ -71,6 +72,8 @@ "M-p" 'previous-heading ))))) +;;; Does not work: +;;; https://discourse.atlas.engineer/t/hint-prompt-not-showing-up/840 (define-configuration :prompt-buffer-mode "Prompt buffer mode keybindings." ((keyscheme-map @@ -79,6 +82,16 @@ ;; It is important to have the `nyxt/' namespace here nyxt/keyscheme:emacs (list - "C-s" 'next-suggestion - "C-r" 'previous-suggestion + "C-s" 'nyxt/mode/prompt-buffer:next-suggestion + "C-r" 'nyxt/mode/prompt-buffer:previous-suggestion ))))) + +;;; Neither does this work +;; (define-configuration :prompt-buffer-mode +;; "Prompt buffer mode keybindings." +;; ((override-map +;; (let ((map (make-keymap "override-map"))) +;; (define-key map +;; "C-s" 'nyxt/mode/prompt-buffer:next-suggestion +;; "C-r" 'nyxt/mode/prompt-buffer:previous-suggestion +;; ))))) -- cgit v1.2.3