[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DISCUSSION] "quick-help" popup for org-columns (column view)
|
From: |
Sławomir Grochowski |
|
Subject: |
Re: [DISCUSSION] "quick-help" popup for org-columns (column view) |
|
Date: |
Thu, 02 May 2024 20:04:33 +0200 |
Hi Philip,
what's your opinion about this change?
I understand it's a low-level hack, but maybe you can advise on how to do it
better?
Sławomir Grochowski <slawomir.grochowski@gmail.com> writes:
> That's great idea. I tried with this code:
>
> (message "Toggle display of quick-help buffer using %s."
> (propertize (key-description (this-command-keys)) 'face
> 'help-key-binding 'font-lock-face 'help-key-binding))
>
> And it works perfectly.
> But I would like 'help-quick' for org-columns to be bind to other
> keybinding: "?" not "C-h C-q".
>
> Because now it's like this:
>
> 1. invoke the command using "?" keybinding:
>
> (defun org-columns-help-quick-toggle ()
> (interactive)
> (let ((help-quick-sections org-columns-help-quick-sections)
> (help-quick-use-map org-columns-map))
> (help-quick-toggle)))
>
> (org-defkey org-columns-map "?" #'org-columns-help-quick-toggle)
>
> 2. 'help-quick' for org-columns buffer will appear with the message:
> "Toggle display of quick-help buffer using C-h C-q."
>
> So this is misleading.
> Because pressing 'C-h C-q' will close the buffer but pressing it again
> will show 'help-quick' buffer and not 'help-quick' for org-columns buffer.
>
> Therefore, I think that to use a different keybinding we need to modify
> the code.
> Or am I missing something?
--
Slawomir Grochowski
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [DISCUSSION] "quick-help" popup for org-columns (column view),
Sławomir Grochowski <=