nyxt icon indicating copy to clipboard operation
nyxt copied to clipboard

vi-mode not working in fresh pre-release 4.0.0.-pre12, key s is misinterpreted

Open cvogl opened this issue 5 months ago • 1 comments

A fresh configuration of Nyxt4-pre-12 with just vi-mode enabled (cf. issue #3675 ) does not allow typing commands in prompt. Typing leads to strange behaviour in prompt buffer, user is not able to finish words/commands

Steps to reproduce the issue

Fresh Nyxt4 config, open settings buffer ⇒ keyboard shortcuts Switch to vi quit Nyxt4 restart Nyxt4 Open command prompt (Ctrl-space), try to type ›describe‹, after ›de‹ cursor/point goes back left, word is not finished. Or try to type ›show-system-information‹ to report this bug …

Looks like the key ›s‹ is somehow interpreted as the character replacement key.

Pasting commands into prompt buffer makes them executable.

Information

  • OS Name+Version: Linux 6.12
  • Installation method (Flatpak, Guix, package manager, build from source): App.Image from 4.0.0-pre-release-12
  • Output of Nyxt command show-system-information: Nyxt version: 4 Web Renderer: Electron OS: Linux 6.12.37-1-MANJARO Lisp implementation: SBCL 2.4.5 (Dynamic space: 3072MB) ASDF version: 3.3.7 Features: (:NYXT-ELECTRON :NYXT-4 :CLIPBOARD-CONTENT-METHOD :PARENSCRIPT :NSYMBOLS :FSET-EXT-STRINGS :NAMED-READTABLES :GLOBAL-VARS :LPARALLEL :21BIT-CHARS :PLUMP-UTF-32 :CLOSER-MOP :CL-PPCRE-UNICODE :CL-UNICODE :CHUNGA :FLEXI-STREAMS :CL-PPCRE :BORDEAUX-THREADS :LPARALLEL.WITH-CLTL2 :LPARALLEL.WITH-CAS :LPARALLEL.WITH-STEALING-SCHEDULER :SPLIT-SEQUENCE CFFI-FEATURES:FLAT-NAMESPACE CFFI-FEATURES:X86-64 CFFI-FEATURES:UNIX :CFFI CFFI-SYS::FLAT-NAMESPACE ALEXANDRIA::SEQUENCE-EMPTYP :FAST-IO-SV :FAST-IO :CL-JSON-CLOS :CL-JSON :SBCL-USES-SB-ROTATE-BYTE CHIPZ-SYSTEM:GRAY-STREAMS :THREAD-SUPPORT :ASDF3.3 :ASDF3.2 :ASDF3.1 :ASDF3 :ASDF2 :ASDF :OS-UNIX :NON-BASE-CHARS-EXIST-P :ASDF-UNICODE :ARENA-ALLOCATOR :X86-64 :GENCGC :64-BIT :ANSI-CL :COMMON-LISP :ELF :IEEE-FLOATING-POINT :LINUX :LITTLE-ENDIAN :PACKAGE-LOCAL-NICKNAMES :SB-LDB :SB-PACKAGE-LOCKS :SB-THREAD :SB-UNICODE :SBCL :UNIX)

cvogl avatar Jul 19 '25 12:07 cvogl

Further tests with the pre-release while working an a fix for #3677 showed that the issue mostly stems from the prompt counter-intuitively switching between vi-insert-mode and vi-normal-mode. An (over-)conscious application of i and escape lets the user do what he/she intended.

I'll try to pin the issue down as soon as I'm able to switch from Nyxt3 to Nyxt4 as my daily driver.

cvogl avatar Aug 04 '25 12:08 cvogl