Re: Automatically update plain list checkboxes when removing nested list items?

2024-09-01 Thread Sławomir Grochowski
Ihor Radchenko writes: > There is no such way readily available, AFAIK. I also noticed that there is no command to remove an item from a plain list. But I've never needed that functionality. I made a simple comparison table to better understand the org mode interface, maybe it will be useful to

Re: [BUG] colview.el regexp - capture operator when title is empty

2024-08-25 Thread Sławomir Grochowski
hen there is empty parantheses '()' in 'column format string'. Reported-by: Sławomir Grochowski Link: https://list.orgmode.org/orgmode/877ccczt83@gmail.com/ --- lisp/org-colview.el | 19 --- testing/lisp/test-org-colview.el | 7 ++- 2 file

Re: [BUG] colview.el regexp - capture operator when title is empty

2024-08-25 Thread Sławomir Grochowski
I tried to describe the problem better as well as my thought process: The `org-columns-compile-format' function has a bug in regexp. When an empty parentheses `()` is in the 'column format string' - and it always is when user do not provide a column title - then the regexp can't capture the operat

Re: [BUG] colview.el regexp - capture operator when title is empty

2024-08-21 Thread Sławomir Grochowski
Ihor Radchenko writes: > May you also fix the regexp in `org-columns-compile-format'? > I recommend using `rx' to make the regexp more readable and less prone > to mistakes. OK. I will try. String-based Emacs regexp is unreadable and quite scary for me. That's why I always convert all regexes t

[BUG] colview.el regexp - capture operator when title is empty

2024-08-19 Thread Sławomir Grochowski
Hello, I have found a bug in regexp. Test that need to pass to fix it is below. >From 9710f6befb1bd4eee2d508d7baaee95e825a68dc Mon Sep 17 00:00:00 2001 From: Slawomir Grochowski Date: Mon, 19 Aug 2024 12:30:49 +0200 Subject: [PATCH] testing/lisp/test-org-colview.el: add test to pass to fix a bu

Re: [FR] org-colview.el, add annotation for functions summary-types

2024-08-16 Thread Sławomir Grochowski
Ihor Radchenko writes: > Ok. But please double-check that it is really the case. Checked. So I have those 3 code snipets: (defun org-columns--summary-types-completion-function (string) (docstring-first-line (cdr (assoc string (append org-columns-summary-types

Re: [FR] org-colview.el, add annotation for functions summary-types

2024-08-15 Thread Sławomir Grochowski
Ihor Radchenko writes: > Why not applying faces? Because in case of 'annotation-function': https://www.gnu.org/software/emacs/manual/html_node/elisp/Programmed-Completion.html "...Unless this function puts own face on the annotation suffix string, the completions-annotations face is added by de

Re: [FR] org-colview.el, add annotation for functions summary-types

2024-08-15 Thread Sławomir Grochowski
Thank you for your help Ihor. Ihor Radchenko writes: > See `help--symbol-completion-table-affixation'. It's a private function and I need only a part of it. Should I extract that part and create a new function? Like this below? (defun first-line-docstring (fun) (let* ((doc (condition-case

[FR] org-colview.el, add annotation for functions summary-types

2024-08-08 Thread Sławomir Grochowski
Dear all, When the user wants to add a new column (or edit an existing one), he executes the command `org-columns-new'. Then he can enter or select a few 'column attributes' (see in manual https://orgmode.org/org.html#Column-attributes-1). One of the attributes is "SUMMARY-TYPE". This attribute c

[BUG] `org-agenda-write' (error "No buffer named *Org Agenda*")

2024-07-28 Thread Sławomir Grochowski
Hello, I am encountering an error when running the `org-agenda-write' command on any 'Agenda Views'. The error message is: (error "No buffer named *Org Agenda*"). Despite this error, the file is created successfully. The part of the code from `org-agenda-write' that triggers this error is: (set

Re: [DISCUSSION] "quick-help" popup for org-columns (column view)

2024-05-02 Thread Sławomir Grochowski
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 writes: > That's great idea. I tried with this code: > > (message "Toggle display of quick-help buffer usin

Re: [DISCUSSION] "quick-help" popup for org-columns (column view)

2024-04-18 Thread Sławomir Grochowski
Philip Kaludercic writes: > Sławomir Grochowski writes: > >> Philip Kaludercic writes: >>> I have pushed the changes to master. >> >> Thank you Philip for your help. It works. >> >> But there is one more small thing. >> A message that

Re: [DISCUSSION] "quick-help" popup for org-columns (column view)

2024-04-15 Thread Sławomir Grochowski
Philip Kaludercic writes: > I have pushed the changes to master. Thank you Philip for your help. It works. But there is one more small thing. A message that is displayed in the minibuffer. It contains two pieces of information: (1) command name Right now it's hardcoded.

Re: [DISCUSSION] "quick-help" popup for org-columns (column view)

2024-04-11 Thread Sławomir Grochowski
Philip Kaludercic writes: > I tried out using your `org-columns-help-quick-sections' variable, but > it seems that `where-is' didn't find all the commands you wanted: > Are commands like `org-columns-move-up' part of the next release of Org? > I am using whatever is currently on master. Yes thi

Re: [DISCUSSION] "quick-help" popup for org-columns (column view)

2024-04-10 Thread Sławomir Grochowski
Thank you Philip for the explanation and preparing the code snippet. So what are the next steps? Can you merge your patch? -- Slawomir Grochowski

Re: [DISCUSSION] "quick-help" popup for org-columns (column view)

2024-04-08 Thread Sławomir Grochowski
Philip Kaludercic writes: > We could add a `help-quick-use-map' variable and bind it to `global-map' > by default. You can then re-bind it in your command. I'm sorry, but I don't quite understand it. It seems to me that the simplest way is to add a parameter to the function, like this: (defu

Re: [DISCUSSION] "quick-help" popup for org-columns (column view)

2024-04-08 Thread Sławomir Grochowski
chad writes: > If you don't mind me asking: Thank you for sharing your views. > What are your high-level goals and immediate needs for changing > help-quick? I want to reuse quick-help for functionality in org-mode - column view package. See first email in this thread - there is even a screen

Re: [DISCUSSION] "quick-help" popup for org-columns (column view)

2024-04-06 Thread Sławomir Grochowski
Ihor Radchenko writes: > I see no downside supporting `help-quick' command in Org mode's column > view. Generally, better integration with Emacs built-in functionality is > welcome. Great. I'll be happy to take care of it. But first, we need to modify `help-quick' to be more reusable. I tried t

Re: [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]'

2024-04-06 Thread Sławomir Grochowski
Ihor Radchenko writes: > Thanks! > I improved the patch a bit, with minor changes to the commit message and > adding more to the docstring and type spec of the defcustom. I also > changed the custom group (:group 'checkbox does not exist). Great. Thank you. It looks much better. But I think it'

Re: [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]'

2024-04-04 Thread Sławomir Grochowski
Ihor Radchenko writes: > Do not forget to add :package-version. Thank you for bringing it to my attention. Patch in attachment. >From eb71166693065534be9effdc28aea54bb24e64d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Grochowski?= Date: Sat, 16 Mar 2024 13:29:53 +0100 Subject:

Re: [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]'

2024-04-03 Thread Sławomir Grochowski
Ihor Radchenko writes: > It is not very clear when this feature is useful. May you provide a > small example as a part of the news entry and also > `org-columns-checkbox-states' docstring? Yes. You are right. Thank you. After thinking about I have found a better name: (defcustom org-columns-che

Re: [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]'

2024-04-02 Thread Sławomir Grochowski
After careful consideration, I believe it is most prudent to only introduce a defcustom variable. This will allow for modification while simultaneously preserving the current behavior. Currently we can change the value of "org-columns-checkbox" with the following keybindings: (1)C-c C-c (org-

Re: [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]'

2024-03-20 Thread Sławomir Grochowski
Ihor Radchenko writes: > I think that we can do the following: > > (1) modify org-columns-next-allowed-value (S-/) to use the > three states. > > (2) modify org-columns-toggle-or-columns-quit and org-columns--toggle to > follow what C-c C-c does: > > (5.6 Checkboxes section of the manu

Re: [PATCH] doc/org-manual.org (Checkboxes): move section 'Checkboxes' from 'TODO Items' to 'Plain Lists'

2024-02-27 Thread Sławomir Grochowski
a new thread I will post the changes regarding '5.6 Checkboxes'. And then later we could consider relocating. -- Sławomir Grochowski

Re: [FR] Add a way to mark an item in a checklist as failed

2024-02-26 Thread Sławomir Grochowski
tle too complicated. What others think? -- Sławomir Grochowski

Re: [FR] Add a way to mark an item in a checklist as failed

2024-02-26 Thread Sławomir Grochowski
hecklists are visually > nicer and have cookies `[/]` etc. You can also use statistics cookie '[/]' in checkbox items list. For example: #+begin_example - [ ] call people [1/2] - [X] Peter - [ ] Sarah #+end_example -- Sławomir Grochowski

RE: [External] : Re: [DISCUSSION] "quick-help" popup for org-columns (column view)

2024-02-14 Thread Sławomir Grochowski
st hit RET for a default name). Yes, you can copy or even edit 'which-key' 'popup'. > 3. Icicles can also show you complete help > for key completions shown in *Completions*, > in *Help*. And likewise for any other > kind of completions for which there's a > help description. > > Showing help for completions is another > general feature that Emacs should have. I don't know if 'which-key' has this option. -- Sławomir Grochowski

[PATCH] lisp/org-colview.el: [refactor] [extract function] `org-columns-move-up' & `org-columns-move-down'

2024-02-04 Thread Sławomir Grochowski
Dear All, It's a small refactoring - extract function - and the patch is self-explanatory. Regards, Sławomir Grochowski >From e12fe4e911c90b8f0fc587286937d4c76cac4b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Grochowski?= Date: Sat, 3 Feb 2024 20:50:08 +0100 Subject

[PATCH] lisp/org-colview.el: [refactor] replace anonymouse function with `forward-char

2024-02-04 Thread Sławomir Grochowski
Dear All, It's a TINYCHANGE and the patch is self-explanatory. Regards, Sławomir Grochowski From 884e57101de6baf92d6d4e6c2c3476c7c3498185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Grochowski?= Date: Sat, 3 Feb 2024 19:30:03 +0100 Subject: [PATCH] lisp/org-colview.el: [ref

Re: [PATCH] doc/org-manual.org: Checkboxes, add checkbox states examples

2024-01-27 Thread Sławomir Grochowski
Dear All, I noticed in my patch that I moved the description ("The ‘[2/4]’ and ‘[1/3]’ in") of an example. And it should be just below the example. So I'm sending a fixup! patch to fix this. It's my first fixup! patch so I hope this is the right procedure ;) Regards, Sław

[PATCH] doc/org-manual.org (Checkboxes): move section 'Checkboxes' from 'TODO Items' to 'Plain Lists'

2024-01-25 Thread Sławomir Grochowski
tion should be under 'Plain Lists' heading not under 'TODO Items'. Link https://orgmode.org/org.html#Checkboxes would stay the same. So it's just a move section to a more suitable place. Without changing the content. What do you think? Patch in the attachment. Regards, Sł

Re: [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]'

2024-01-23 Thread Sławomir Grochowski
Thank you for asking. Yes, I would be interested. I will prepare a patch. Regards, Sławomir Grochowski On Tue, Jan 16, 2024 at 4:47 PM Ihor Radchenko wrote: > Ihor Radchenko writes: > > >> What do you think? > > > > I think that your use-case is not necessarily comm

[PATCH] doc/org-manual.org: update Checkboxes and TODO items cookie statistics

2024-01-23 Thread Sławomir Grochowski
or the code review. Now please help me find everything that can be improved in this patch. Regards, Sławomir Grochowski From 0e7f14b7dc8474510993d1d9a4dd75bef7d7c12e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Grochowski?= Date: Sun, 14 Jan 2024 21:25:32 +0100 Subject: [PATCH] doc/org-ma

Re: [PATCH] doc/org-manual.org: Checkboxes, add checkbox states examples

2023-11-07 Thread Sławomir Grochowski
Awesome! Thank you Bastien. I'm planning to add some examples with checkbox cookie data. Regards, Sławomir Grochowski On Wed, Nov 8, 2023 at 12:37 AM Bastien Guerry wrote: > Sławomir Grochowski writes: > > >> Applied, with a minor modification, using 1. instead of 1) for

Re: [PATCH] doc/org-manual.org: Checkboxes, add checkbox states examples

2023-11-07 Thread Sławomir Grochowski
> Applied, with a minor modification, using 1. instead of 1) for the > list items. When will you merge the patch? https://git.savannah.gnu.org/cgit/emacs/org-mode.git/ And when update will be visible on site https://orgmode.org/org.html#Checkboxes ? Regards, Sławomir Grochowski On Mon,

Re: [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]'

2023-11-05 Thread Sławomir Grochowski
;[-]".' Probably it should not be allowed for normal checkbox only for parent checkbox, which have children. What do you think? Regards, Sławomir Grochowski On Sun, Nov 5, 2023 at 1:25 PM Ihor Radchenko wrote: > Sławomir Grochowski writes: > > > I was wond

Re: [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]'

2023-11-01 Thread Sławomir Grochowski
t as it is. But after a couple of days I'm not sure if I was at the gym that day and maybe I just forgot to mark it as done. So for this purpose I'm marking it as [ - ] that explicitly I can't do this checkbox. Maybe others use it the same way? What do you think? Regards

[FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]'

2023-11-01 Thread Sławomir Grochowski
ot;[ ]" "[X]"))) to that: + (`(,_ ,_ ,_ ,(or "X" "X/" "X%") ,_) '("[ ]" "[-]" "[X]"))) What do you think? Regards, Sławomir Grochowski

Re: org-columns--summary-mean-time [BUG]

2023-10-14 Thread Sławomir Grochowski
Now I get it. Thank you for explanation. On Sat, Oct 14, 2023 at 9:39 PM Ihor Radchenko wrote: > Sławomir Grochowski writes: > > > But I'm talking about: > > (":mean" . org-columns--summary-mean-time) > > not ("@mean" . org-columns--summary

Re: org-columns--summary-mean-time [BUG]

2023-10-14 Thread Sławomir Grochowski
But I'm talking about: (":mean" . org-columns--summary-mean-time) not ("@mean" . org-columns--summary-mean-age). So this is the right function (":mean" . org-columns--summary-mean-time)? Or do I need to write a new one? On Sat, Oct 14, 2023 at 9:19 PM

Re: org-columns--summary-mean-time [BUG]

2023-10-14 Thread Sławomir Grochowski
In ex. I want to have an average time when I go to bed. So on Monday I went to bed at 22:00 and on Tuesday at 02:00. So the average time would be midnight 00:00. But it returns 12:00 which is noon. On Sat, Oct 14, 2023 at 8:50 PM Ihor Radchenko wrote: > Sławomir Grochowski wri

org-columns--summary-mean-time [BUG]

2023-10-14 Thread Sławomir Grochowski
hould be 00:00 (org-columns--summary-mean-time '("22:00" "03:00") nil) ;=> "12:30" ; should be 00:30 What do you think? Regards, Sławomir Grochowski

Re: [RFC] [feat] org-colview/org-columns: 'column view' moving rows up/down

2023-08-20 Thread Sławomir Grochowski
I thought it would get lost in the many thousands of other TODOs you have on your plate. Thank you. But to my another surprise you have fixed the bug that was killing me everyday 'org-insert-heading: Fix when folded text is kept right at the new heading'. Thank you very much. Regards

Re: [BUG?] org-babel eval src block with :dir parameter

2023-08-06 Thread Sławomir Grochowski
Yes I just simplified the example. The case is if I add :dir param it result will be wrapped it #+begin_example #+end_example block. On Sun, Aug 6, 2023 at 9:02 PM Ihor Radchenko wrote: > Sławomir Grochowski writes: > > > I'm surprised by this behaviour. > > > > #+

[BUG?] org-babel eval src block with :dir parameter

2023-08-06 Thread Sławomir Grochowski
#+end_src #+RESULTS: #+begin_example file1.txt file2.txt #+end_example Is it a bug? Org mode version 9.6.7 (9.6.7-gc74c4a @ /home/slk/.emacs.d/straight/build/org/) GNU Emacs 29.1.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2023-07-30 Regards, Sławomir Grochowski

[test] org-colview/org-columns

2023-04-17 Thread Sławomir Grochowski
Dear All, I'm trying to better understand 'org-colview/org-columns'. So I wrote some tests. File in attachment. I hope the commit message is correct. I will be very grateful for your comments & feedback on what can be done better. Regards, Sławo

Re: [RFC] [feat] org-colview/org-columns: 'column view' moving rows up/down

2023-04-11 Thread Sławomir Grochowski
fore the first line of the buffer. And that makes some kind of overflow? I will try to simplify the example and create a simple overlay without org-columns. If anyone has some ideas how to debug it I will be grateful for the hints. On Sun, Apr 9, 2023 at 11:13 AM Ihor Radchenko wrote: > Sławomi

Re: [RFC] [feat] org-colview/org-columns: 'column view' moving rows up/down

2023-04-08 Thread Sławomir Grochowski
to ass...@gnu.org, yesterday. Does this test have anything to do with the new feature? > Yes, you are right. This test has nothing in common with the feature. I have removed it. On Fri, Apr 7, 2023 at 1:01 PM Ihor Radchenko wrote: > Sławomir Grochowski writes: > > > Recently I often u

[RFC] [feat] org-colview/org-columns: 'column view' moving rows up/down

2023-04-06 Thread Sławomir Grochowski
ce interface in 'column view' and 'table'. Based on that, I propose to add functionality to 'move row up/down' in 'column view' and set keybinding the same as in table above -> meta up/down. Patch is in the attachment. What others think about it? Regards, S

Re: [bug] org-columns-edit-value will capitalize property

2023-03-25 Thread Sławomir Grochowski
My apologies, I've made a mistake. There is not such a bug. Everythings works correctly. On Wed, 22 Mar 2023 at 13:18, Sławomir Grochowski < slawomir.grochow...@gmail.com> wrote: > Ok. I will try to send my first patch. > Desired behavior is: by using command 'org-colu

Re: [bug] org-columns-edit-value will capitalize property

2023-03-22 Thread Sławomir Grochowski
Ok. I will try to send my first patch. Desired behavior is: by using command 'org-columns-edit-value' do not change 'property' name, just its value. On Wed, 22 Mar 2023 at 12:52, Ihor Radchenko wrote: > Sławomir Grochowski writes: > > > After updating the value

[bug] org-columns-edit-value will capitalize property

2023-03-22 Thread Sławomir Grochowski
le about using upper case. https://www.psychnewsdaily.com/new-study-shows-all-caps-harder-to-read/ GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2023-02-26 org release_9.6.1-34 Regards, Sławomir Grochowski

[BUG] org-catch-invisible-edits has stopped working [9.5.5 (9.5.5-geb5ef0 @ /home/slk/.emacs.default/straight/build/org/)]

2022-09-08 Thread Sławomir Grochowski
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. --