diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-13 00:51:13 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-13 00:51:13 -0500 |
| commit | fab07b7519d6eadf86d8dae0b92bf490fc6b67cc (patch) | |
| tree | 2cbef9468d1666b0d9c11a211a412409590340b5 /scripts | |
| parent | b64dadbe7d2fdfadcd0cbdcd1e12f8cd2b03eb91 (diff) | |
| download | dotemacs-fab07b7519d6eadf86d8dae0b92bf490fc6b67cc.tar.gz dotemacs-fab07b7519d6eadf86d8dae0b92bf490fc6b67cc.zip | |
fix(org-capture): make the desktop quick-capture popup behave
The Hyprland Super+Shift+N popup opens a floating emacsclient frame named "org-capture" and runs a capture in it. Three things were wrong. The *Org Select* menu and the CAPTURE buffer split the small frame instead of filling it, so the daemon's last buffer leaked in beside two tmux-like modelines. The menu offered every template, including ones that can't work off the desktop: the pdf templates error outright, and the link and mu4e templates pull a link to whatever file the daemon last had open. And the frame only closed on a completed capture, so aborting at the menu or hitting an erroring template orphaned it.
I added cj/quick-capture as the launcher's entry point instead of org-capture. It offers only Task, Bug, and Event, with Task and Bug retargeted to the global inbox since a desktop capture has no real project context, and it closes the popup frame on every exit path: finalize, abort, or error. A frame-scoped display-buffer-alist entry forces the menu and capture buffer into the frame's sole window, and an org-mks advice drops the Customize entry. Both gate on the "org-capture" frame name, so in-Emacs captures keep their windows.
cj/quick-capture selects the "org-capture" frame by name before capturing rather than trusting the selected frame. The launcher runs before Hyprland settles focus on the new float, so the selected frame is still the main one and the capture would otherwise land there.
Raised from the archsetup project.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
