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

fix: fix the toggle behavior of citre-peek #93

Closed masatake closed 3 years ago

masatake commented 3 years ago

Though citre-peek called citre-peek-abort for disabling citre-peek-mode, it had no effect because code for enabling the mode was evaluated after calling citre-peek-abort.

Signed-off-by: Masatake YAMATO yamato@redhat.com

AmaiKinono commented 3 years ago

Ah, I think you misunderstood it (or, citre-peek misunderstood your mind :D)

citre-peek does not toggle. It always peeks the definitons of symbol at point. The citre-peek-abort call is there just to abort the old session before we start a new one.

AmaiKinono commented 3 years ago

The simplest way to the toggling behavior is to bind citre-peek-abort in citre-peek-keymap to the same key you bind to citre-peek or citre-ace-peek.

masatake commented 3 years ago

Oh, I see.