Function: majutsu-jj-command-complete

majutsu-jj-command-complete is an interactive and natively compiled function defined in majutsu-command.el.

Signature

(majutsu-jj-command-complete)

Documentation

Complete the jj command at point using jj's native completer.

Key Bindings

majutsu-read-jj-command-map <tab> majutsu-read-jj-command-map TAB

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-command.el
(defun majutsu-jj-command-complete ()
  "Complete the jj command at point using jj's native completer."
  (interactive)
  (let* ((input (buffer-substring-no-properties (minibuffer-prompt-end) (point)))
         (items (majutsu--jj-completion-items input)))
    (if items
        (pcase-let ((`(,beg . ,end) (majutsu--jj-command-completion-bounds)))
          (completion-in-region beg end (majutsu-completion-table items)))
      (minibuffer-message "No jj completions"))))