-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Marking candidates #467
Marking candidates #467
Conversation
9b6b353
to
4cda2c5
Compare
There is no hurry here! I just think it is better to do a bit of cleanup first before we add new features, see also #468. |
I've implemented the simplified embark-collect & embark-live now. |
I'm going to take this code and update it for the recent changes. |
Done. 6a8e6de I added toggle-marks and unmark-all commands as well. |
Great, thanks! How did you address this comment about moving the overlays when toggling the view modes?
|
I did not address it all. 🙄 The marks just vanish. 🤣 |
I created issue #473 so I don't forget to fix this. |
Where would you like feedback on this, or possibly dumb questions, @oantolin? Here? |
Here would be fine, @bdarcus. |
OK, so I tested this on my obvious use case: inserting multiple citations. So I added
... and here's where I got stuck. I think ideally embark would just run the command. But it doesn't; it prompts if I want to run it. If I do, it still doesn't actually do so, and prompts again. In the end, I can't get a result, and find it all confusing at this point. Am I doing something wrong? And did you add an option to not prompt? I recall we discussed this earlier. |
There is an option to avoid confirming I'm not sure what happened after you confirmed the command, the part that says "If I do, it still doesn't actually do so, and prompts again." I'll test here and see if I can reproduce that. |
Also, how would you two imagine keybindings for mark/unmark? I had been wondering about |
Oh, I try to not invent key bindings if I can avoid it, I just copied copied dired and ibuffer: mark is |
Ah right; makes total sense! |
I see what you mean with |
I think this shouldn't work, because that tells Embark to call the functions with a list of candidates, and |
OK. I need to think about that some more. But if I do I don't recall seeing anything like that with |
This seems to work if you have (defun cite-all (refs)
(interactive)
(cl-letf (((symbol-function #'org-cite-basic--complete-key)
(lambda (&optional _)
(let ((tbl (org-cite-basic--key-completion-table)))
(mapcar (lambda (ref) (gethash ref tbl)) refs)))))
(org-cite-insert nil)))
(add-to-list 'embark-multitarget-actions 'cite-all) |
See the discussion in #166