Open tepmnthar opened 2 years ago
I'm not using dooms-emacs. My configuration is simply like this:
(use-package lexic :commands lexic-search lexic-list-dictionary :bind (:map lexic-mode-map (("q" . lexic-return-from-lexic) ("RET" . lexic-search-word-at-point) ("a" . outline-show-all) ("h" . (lambda () (interactive) (outline-hide-sublevels 3))) ("o" . lexic-toggle-entry) ("n" . lexic-next-entry) ("N" . (lambda () (interactive) (lexic-next-entry t))) ("p" . lexic-previous-entry) ("P" . (lambda () (interactive) (lexic-previous-entry t))) ("E" . (lambda () (interactive) (lexic-return-from-lexic) ; expand (switch-to-buffer (lexic-get-buffer)))) ("M" . (lambda () (interactive) (lexic-return-from-lexic) ; minimise (lexic-goto-lexic))) ("C-p" . lexic-search-history-backwards) ("C-n" . lexic-search-history-forwards) ("P" . (lambda () (interactive) (call-interactively #'lexic-search))))) :config (setq lexic-dictionary-specs '(("牛津现代英汉双解词典" :prioryty 1) ("Collins Cobuild 5" :priority 2))))
When I search a word which has multi entries. The output is :
Found 13 entries, similar to clock. 牛津现代英汉双解词典 clock Collins Cobuild 5 alarm biological body clock clock clock clock clock clock clock cuckoo grandfather
I don't have a choice number like sdcv has in terminal.
Then I press the shortcut n for the lexic-next-entry, and I got this:
Debugger entered--Lisp error: (search-failed " ") search-forward(" ") lexic-get-outline-path() lexic-next-entry() funcall-interactively(lexic-next-entry) call-interactively(lexic-next-entry record nil) command-execute(lexic-next-entry record) counsel-M-x-action("lexic-next-entry") ivy-call() ivy-read("M-x " ("lexic-next-entry" "lexic-toggle-entry" "lexic-search" "lexic-search-word-at-point" "delete-region" "paredit-kill" "paredit-forward-slurp-sexp" "magit-subtree-pull" "eshell" "toggle-frame-fullscreen" "magit-subtree-add" "org-toggle-link-display" "indent-region" "list-packages" "shrink-window" "toggle-truncate-lines" "magit-find-file" "counsel-rg" "toggle-frame-maximized" "customize-variable" "load-file" "org-export-dispatch" "pwd" "magit-blame" "docker" "org-display-inline-images" "balance-windows" "org-latex-preview" "switch-window-then-swap-buffer" "paredit-raise-sexp" "query-replace-regexp" "table-shorten-cell" "isearch-forward-regexp" "new-frame" "calc" "load-theme" "align-regexp" "org-preview-latex-fragment" "paredit-backward-barf-sexp" "table-justify" "global-undo-tree-mode" "org-mode" "auto-fill-mode" "customize-group" "flush-lines" "revert-buffer" "org-table-insert-hline" "eww" "nov-mode" "keep-lines" ...) :predicate counsel--M-x-externs-predicate :require-match t :history counsel-M-x-history :action counsel-M-x-action :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input nil :caller counsel-M-x) counsel-M-x() funcall-interactively(counsel-M-x) call-interactively(counsel-M-x nil nil) command-execute(counsel-M-x)
What does this mean. I suppose that I can navigate through those enties by pressing n and p.
I tried to check the code. But it seems too complex to me. 😞
Same here. Any update on this?
I'm not using dooms-emacs. My configuration is simply like this:
When I search a word which has multi entries. The output is :
I don't have a choice number like sdcv has in terminal.
Then I press the shortcut n for the lexic-next-entry, and I got this:
What does this mean. I suppose that I can navigate through those enties by pressing n and p.
I tried to check the code. But it seems too complex to me. 😞