Re: RFC on implementation adding buttons beside headings

2023-02-20 Thread Bruno Barbier
pareto optimal writes: > I found the only way to place the button where I wanted was to insert > some blank space after the heading. Is that expected and best practice > or is there some other way to do it? FWIW, instead of inserting some blank spaces, you could overlay existing characters, you'

Re: RFC on implementation adding buttons beside headings

2023-02-20 Thread Ihor Radchenko
[ Adding Org ML back to CC ] pareto optimal writes: > Do you mean something like extending https://github.com/alphapapa/org-sidebar > to have these instead of directly in the org document? A bit different. What I have in mind is something like (defun yant/insert-interative-button (text window

Re: RFC on implementation adding buttons beside headings

2023-02-19 Thread Samuel Wales
at least for context menus or so it might or might not be useful to install and modify org-mouse. it allows you to do things like unfold, check a list box, etc. On 2/19/23, Ihor Radchenko wrote: > pareto optimal writes: > >> I've recently been playing with emacs on Android and wanted an easier

Re: RFC on implementation adding buttons beside headings

2023-02-19 Thread Ihor Radchenko
pareto optimal writes: > I've recently been playing with emacs on Android and wanted an easier way to > clock in. > > My idea was to put buttons beside org headings that are TODO items. I do this > by: > > - removing clocking buttons on heading if present, then adding a clock in > button on 'o

Re: RFC on implementation adding buttons beside headings

2023-02-18 Thread pareto optimal
I forgot the implementation: ``` (define-button-type 'org-clock-in-button   'follow-link t   'face 'custom-button   'mouse-face 'custom-button-mouse   'action (lambda (b) (org-clock-in))) (define-button-type 'org-clock-out-button   'follow-link t   'face 'custom-button   'mouse-face 'custom-butto

RFC on implementation adding buttons beside headings

2023-02-18 Thread pareto optimal
Hi all! I've recently been playing with emacs on Android and wanted an easier way to clock in. My idea was to put buttons beside org headings that are TODO items. I do this by: - removing clocking buttons on heading if present, then adding a clock in button on 'org-after-todo-state-change-hoo