Re: Cycle values of a cell from a sequence

2025-05-09 Thread jman
Christian Moe writes: ** TO_BE_SENT Invoice CL161 :PROPERTIES: :Date: [2025-03-02 Sun] :No: CL161 :Amount: 10 :END: Ah OK, now I understand. I like this version better, it's a little bit cleaner - as you point out. Thanks again, happy that I learned something co

Re: Cycle values of a cell from a sequence

2025-05-09 Thread Christian Moe
jman writes: > Christian Moe writes: >> An alternative to defining a STATUS property at all would be to define the >> statuses as local TODO keywords, which gives you a quick way to look up >> all unsent or unpaid invoices via the agenda view without having to >> write match syntax. > > I've tri

Re: Cycle values of a cell from a sequence

2025-05-09 Thread jman
PJ Proudhon writes: In, your my/org-cycle-status function, if you just set t as the last argument of your org-table-put call, e.g. " (org-table-put (org-table-current-line) (org-table-current-column) next t)", the columns will automatically be realigned after a value is inserted Thank you f

Re: Cycle values of a cell from a sequence

2025-05-09 Thread jman
Christian Moe writes: For this particular use case, though, have you considered a different approach, using entries and column view? That is: Wow, this is really a great solution. I didn't know I could play with properties to build a table template! It's just a little bit verbose, but the r

Re: Cycle values of a cell from a sequence

2025-05-09 Thread Christian Moe
jman writes: > --8<---cut here---start->8--- > #+PROPERTY: INVOICE_STATUS "TO_BE_SENT SENT TO_BE_PAID PAID" > > | Invoice Date | Invoice # | Amount | Status | > |--+---++| > | [2025-03-02 Sun] | CL161 |

Re: Cycle values of a cell from a sequence

2025-05-08 Thread PJ Proudhon
Hey, In, your my/org-cycle-status function, if you just set t as the last argument of your org-table-put call, e.g. "(org-table-put (org-table-current-line) (org-table-current-column) next t)", the columns will automatically be realigned after a value is inserted. This is the docstring for org-tab

Re: Cycle values of a cell from a sequence

2025-05-08 Thread Ihor Radchenko
jman writes: > Ok, I have a partial solution: > ... > > Obviously the problem is that I lose the ability to shift columns. > > Is there a free keybinding in orgmode I could associate this helper? Or > is there any way I could have it not interfere with the column shift? You can always bind it to

Re: Cycle values of a cell from a sequence

2025-05-07 Thread jman
Ihor Radchenko writes: AFAIK, there is no such feature for tables that is built-in. I also do not recall any package doing something similar. You may need to write your own helper command and maybe hook it to org-shiftright-hook / org-shiftleft-hook. Ok, I have a partial solution: --8<

Re: Cycle values of a cell from a sequence

2025-05-05 Thread jman
Ihor Radchenko writes: AFAIK, there is no such feature for tables that is built-in. I also do not recall any package doing something similar. You may need to write your own helper command and maybe hook it to org-shiftright-hook / org-shiftleft-hook. OK Ihor, I'll note down to investigate in

Re: Cycle values of a cell from a sequence

2025-05-05 Thread Ihor Radchenko
jman writes: > I'm learning a bit about tables in orgmode. How do I set a value for a > column, where the values are choosen from a custom sequence I define? > How to cycle these values? > > If I understand correctly I can create my own sequence with (example): > ... > Is there a way to edit a ce

Cycle values of a cell from a sequence

2025-05-05 Thread jman
Hello everyone, I'm learning a bit about tables in orgmode. How do I set a value for a column, where the values are choosen from a custom sequence I define? How to cycle these values? If I understand correctly I can create my own sequence with (example): --8<---cut here---