cquery-project / emacs-cquery

Emacs client for cquery, a low-latency language server supporting multi-million line C++ code-bases
116 stars 14 forks source link

Callees and Callers of windows dont close. #32

Closed innerout closed 6 years ago

innerout commented 6 years ago

When i am invoking cquery-call-hierarchy i dont have any problem getting the appropriate tree for the function that i am interested.When i am finished with the working tree and i want to close the side buffer with C-x 1 or C-x k the buffer does not close reporting Cannot make side window the only window

innerout commented 6 years ago

I found the solution by checking the code of cquery-tree.el.If somebody wants to close a callee-caller buffer just press q in the buffer. Also these keybindings should be in the Readme so everybody knows

  (define-key map (kbd "<tab>") #'cquery-tree-toggle-expand)
    (define-key map [mouse-1] #'cquery-tree-toggle-expand)
    (define-key map (kbd "c") #'cquery-tree-toggle-calling)
    (define-key map (kbd "f") #'cquery-tree-press)
    (define-key map (kbd "h") #'cquery-tree-collapse-or-select-parent)
    (define-key map (kbd "j") #'cquery-tree-next-line)
    (define-key map (kbd "k") #'cquery-tree-prev-line)
    (define-key map (kbd "J") #'cquery-tree-next-sibling)
    (define-key map (kbd "K") #'cquery-tree-prev-sibling)
    (define-key map (kbd "l") #'cquery-tree-expand-or-set-root)
    (define-key map (kbd "oh") #'cquery-tree-press-and-horizontal-split)
    (define-key map (kbd "ov") #'cquery-tree-press-and-vertical-split)
    (define-key map (kbd "oo") #'cquery-tree-press-and-switch)
    (define-key map (kbd "q") #'cquery-tree-quit)
    (define-key map (kbd "Q") #'quit-window)
    (define-key map (kbd "yy") #'cquery-tree-yank-path)
    (define-key map (kbd "RET") #'cquery-tree-press-and-switch)
    (define-key map (kbd "<left>") #'cquery-tree-collapse-or-select-parent)
    (define-key map (kbd "<right>") #'cquery-tree-expand-or-set-root)
jacobdufault commented 6 years ago

Also these keybindings should be in the Readme so everybody knows

A PR would be greatly appreciated :)