12 Nov 2024 |
yantar92 (Org contributor) | my current priority is emacsconf, so some things get postponed a bit | 17:02:06 |
yantar92 (Org contributor) | and I still need to finish my backlog from Aug | 17:03:49 |
yantar92 (Org contributor) | Download 2024-11-12_18-06_1.png | 17:05:16 |
John Wiegley | No rush from me; I'm using a git clone of Org-mode now, so I just have the current master with my patch sitting on top. | 17:10:31 |
13 Nov 2024 |
Feeds | New post in etc/ORG-NEWS: Add options to skip extra processing in org-babel-comint-with-output | 04:11:06 |
| Eu joined the room. | 07:54:11 |
yantar92 (Org contributor) | OrgMeetup is about to start (in a few minutes). Join: https://bbb.emacsverse.org/b/iho-h7r-qg8-led | 15:56:54 |
viz |
In reply to
John Wiegley
I use xeft when I am stumbling around
How many files do you have indexed in the Xeft database? I find that Xeft is a bit slow to launch with 500 odd files indexed on my end. I think it is because it calls xeft-file-list-function lavishly. The slowness persists even after I patched it to disable the initial preview of a few files (without having typed any query just after M-x xeft RET). | 18:19:15 |
John Wiegley | I have 2,535 files being indexed. This is my config: https://github.com/jwiegley/dot-emacs/blob/master/init.org#xeft | 18:39:54 |
John Wiegley | in my experience, all interactions with xeft are nearly instant | 18:40:02 |
John Wiegley | the only downside is that it only searches whole files, and only shows the first few hits, so there are many hits that are valid but never visible, making the tool almost useless unless what I'm looking for occurs only once in a file | 18:40:38 |
John Wiegley | This is why C-c a s is so superior that I'm willing to wait. I think I will configure that search to use org-ql instead. | 18:40:53 |
John Wiegley | yes, these work much, much faster:
(defun org-config-find (query)
(interactive "sQuery: ")
(org-ql-search (org-agenda-files)
`(and (or (todo)
(todo "NOTE"))
(not (habit))
(rifle ,query))))
(defun org-config-find-any (query)
(interactive "sQuery: ")
(org-ql-search (org-agenda-files)
`(rifle ,query)))
| 18:43:58 |
John Wiegley | I should change those to search throughout a directory, though... | 18:44:16 |
John Wiegley | * I have 2,496 files being indexed. This is my config: https://github.com/jwiegley/dot-emacs/blob/master/init.org#xeft | 18:57:06 |
viz | Interesting. I guess I need to profile a bit closer, the report was almost useless | 19:13:33 |
viz | In my case, I'm actually using xeft to search text in attached HTML files (which are usually bookmarks or such) so i cannot use org-ql and friends | 19:14:41 |
John Wiegley | Download ScreenFlow.mp4 | 19:16:12 |
viz | Thanks for the config, i will have a look a t I it Ivit | 19:16:21 |
John Wiegley | Here's my experience using xeft. Note that I don't type the x that enters xeft until milliseconds before you see the xeft window pop up | 19:16:27 |
viz | At it* | 19:16:29 |
John Wiegley | the first half of that window is just me getting ready to type C-c n x to enter it | 19:16:48 |
John Wiegley | * the first half of that video is just me getting ready to type C-c n x to enter it | 19:16:54 |
John Wiegley | If it were any faster, I wouldn't believe it was doing anything at all... | 19:17:25 |
viz | Hmm yours is nearly instantaneous | 19:18:24 |
viz | Something is off on my side | 19:18:32 |
viz | For some reason, the database folder is empty too even tho the files are indexed afaict | 19:18:54 |
John Wiegley | hmmm | 19:19:04 |
John Wiegley | my xeft.db directory is in ~/.emacs.d/data, and is 77 MB total | 19:19:35 |
viz | Huh that is what I would expect but mine is completely empty | 19:20:06 |