alphapapa / org-rifle

Rifle through your Org-mode buffers and acquire your target
GNU General Public License v3.0
501 stars 30 forks source link

`cl` symbols need renaming; `org-element-timestamp-successor` no longer exists #86

Open GPPassos opened 2 weeks ago

GPPassos commented 2 weeks ago

Thank you a lot for your work, I have been using org-rifle for quite some time now.

After changing my emacs installation, I realised some commands are not working anymore (in particular, due to the usage of second and third, which now are cl-second and cl-third, but also the non-existence of org-element-timestamp-successor).

I also have noticed that this project has not been updated since last year, and that org-ql now has a rifle mode.

So I was wondering: is this project dead? Has it been replaced by rifle mode on org-ql directly?

I am happy to submit a pull request fixing the bugs above I found, but if this project is dead, I wonder if now it might make more sense to tag the repo as deprecated and refer users to org-ql.

Thanks again!

alphapapa commented 2 weeks ago

Org QL supercedes this library in various ways, but org-rifle still works, and users who prefer its UI may still use it. I am not actively developing org-rifle anymore, but I don't object to occasional maintenance on it. There's no need for it to be broken.

You could fix the cl- symbol prefix-related issues by (require 'cl) in your config, or we could fix the symbols in the source code.

org-element-timestamp-successor's disappearance would need fixing. I haven't looked into how it would need to be done.

It probably would be a good idea to mention Org QL at the top of the readme, yes.

GPPassos commented 2 weeks ago

Thanks for the quick reply, I might look at it. Indeed I have found that I do prefer using the org-rifle interface but I was unable to change the sorting, which is how I found this bug.

alphapapa commented 2 weeks ago

Indeed I have found that I do prefer using the org-rifle interface but I was unable to change the sorting, which is how I found this bug.

If you're willing, I'd like to talk with you about the interface, because my intent is that Org QL will provide an equivalent or better interface through org-ql-find and related commands, but without depending on Helm's own APIs. That is to say, it should be possible to configure Org QL to provide a nearly equivalent UI to org-rifle. In fact, with regard to the option org-ql-completing-read-snippet-function, it seems that performance in related libraries has improved so that the choice that provides org-rifle-style context works much better now, so I'm considering whether to make it the default choice. If you're interested, I'd be glad to hear your feedback about it. Also, the option org-ql-completing-read-snippet-prefix can be set to a newline, to make the appearance more like that of org-rifle.