Skip to content
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

Insert buffer-file-name as FILE if pdf-view-mode is active #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fapdash
Copy link

@fapdash fapdash commented Jul 26, 2021

  • checks if pdf-view-mode is active
  • if it's active it inserts the file name of the currently loaded pdf as PATTERN

@jeremy-compostella I know the code could be cleaner but I wanted to first check if you are generally interested in this change?

@fapdash fapdash changed the title Insert buffer-file-name as PATTERN if pdf-view-mode is active Insert buffer-file-name as FILE if pdf-view-mode is active Jul 26, 2021
@jeremy-compostella
Copy link
Owner

I like the idea so go ahead and make it cleaner.

Also, we support both doc-view-mode and pdf-view-mode.

- checks if pdf-view-mode is active
- checks if doc-view-mode is active
- if either one is active it inserts the file name of the currently
  loaded document as FILE
- adds tests
- adds test command to README
@fapdash
Copy link
Author

fapdash commented Jul 29, 2021

@jeremy-compostella Ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants