Skip to content

Display a header line when editing annotation contents#192

Closed
astoff wants to merge 2 commits into
vedang:masterfrom
astoff:annot-header-line
Closed

Display a header line when editing annotation contents#192
astoff wants to merge 2 commits into
vedang:masterfrom
astoff:annot-header-line

Conversation

@astoff

@astoff astoff commented Feb 12, 2023

Copy link
Copy Markdown
Contributor

Instead of using an echo area message that disappears, display the keys to commit and abort in the header line. This is similar to what org-capture does.

I could also add a customization option to keep the old behavior (but note that a more advanced user can do this anyway using pdf-annot-edit-contents-minor-mode-hook).

Finally, a tangential comment: For consistency with org-capture and magit's commit message editor, pdf-annot-edit-contents-abort should be C-c C-k instead of C-c C-q. Should we add an additional binding in the minor mode map?

@vedang

vedang commented Feb 12, 2023

Copy link
Copy Markdown
Owner

This change looks good to me! I will test it and merge it in tomorrow. +1 to adding C-c C-k as an additional key-binding to abort the edit. If you get around to it before I merge this in, just add a new commit to this PR, or submit a new PR.

Thanks!

@vedang vedang added ux Improving the User Experience of the library pdf-annot Bugs / Feature Requests related to Annotations in PDFs labels Feb 12, 2023
This is consistent with other Emacs packages such as org-capture, VC,
Magit, etc.
@astoff

astoff commented Feb 12, 2023

Copy link
Copy Markdown
Contributor Author

+1 to adding C-c C-k as an additional key-binding

Done!

@vedang

vedang commented Jun 10, 2023

Copy link
Copy Markdown
Owner

Merging this in, thanks for the change!

@vedang vedang closed this Jun 10, 2023
vedang pushed a commit that referenced this pull request Jun 10, 2023
This is consistent with other Emacs packages such as org-capture, VC,
Magit, etc.

Closes: #192
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pdf-annot Bugs / Feature Requests related to Annotations in PDFs ux Improving the User Experience of the library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants