universal-ctags / citre

A superior code reading & auto-completion tool with pluggable backends.
GNU General Public License v3.0
326 stars 26 forks source link

citre conflicts with tramp #78

Closed e665107 closed 3 years ago

e665107 commented 3 years ago

When i use tramp in the dired mode, press the 'v' to open a file, it will be stopped, my friend, you can have a try. eg: Tramp: Inserting ‘/ssh:root@192.168.100.140:/root/gmssl/gmssl/GmSSL-master/apps/asn1pars.c’...done

My config code as follow: (use-package citre :defer t :init (require 'citre-config) (defun prog-mode-citre-bindings() (local-set-key (kbd "C-c j") 'citre-jump) (local-set-key (kbd "C-c l") 'citre-jump-back) (local-set-key (kbd "C-SPC o") 'citre-peek) (local-set-key (kbd "C-c i") 'custom-citre-completion-at-point) ) (defun prog-mode-citre-c-bindings() (local-set-key (kbd "C-SPC o") 'citre-peek) (local-set-key (kbd "C-SPC i") 'citre-peek-through) (local-set-key (kbd "C-SPC f") 'citre-peek-chain-forward) (local-set-key (kbd "C-SPC j") 'citre-peek-chain-backward) (local-set-key (kbd "C-SPC p") 'citre-peek-next-definition) (local-set-key (kbd "C-SPC n") 'citre-peek-prev-definition) (local-set-key (kbd "C-c i") 'custom-citre-completion-at-point) ) (add-hook 'verilog-mode-hook 'prog-mode-citre-bindings) (add-hook 'c-mode-hook 'prog-mode-citre-c-bindings) (setq ;; Set these if readtags/ctags is not in your path. ;; citre-readtags-program "/path/to/readtags" ;; citre-ctags-program "/path/to/ctags" ;; Set this if you use project management plugin like projectile. It's ;; used for things like displaying paths relatively, see its docstring. citre-project-root-function #'projectile-project-root ;; Set this if you want to always use one location to create a tags file. citre-default-create-tags-file-location 'global-cache ;; See the "Create tags file" section above to know these options citre-use-project-root-when-creating-tags t citre-prompt-language-for-ctags-command t) ) Please give a advice on this problem! Thank you!