rnkn / fountain-mode

Emacs major mode for screenwriting in Fountain plain-text markup
https://fountain-mode.org
GNU General Public License v3.0
391 stars 16 forks source link

File preview: How do I set C-c v to open my exported pdf with pdf-view mode in emacs #136

Closed drjswalker closed 10 months ago

drjswalker commented 1 year ago

Hi

I'd like to be able to open the preview of my script in pdf-view mode in emacs (the fountain file is exported to a pdf by afterwriting via the export command) using the built in shortcuts . I can open the pdf file in emacs using C-x f (i have pdf-tools installed) but I have to type the file name. When I try to use C-c v I get the error: "dired-guess-shell-alist-user not configured correctly". My guess is that it defaults to shell commands to open the various file types it can export. How do I get it to use pdf-view mode for pdfs but retain the ability to use shell commands for the other file types?

rnkn commented 1 year ago

That command is only going to call shell commands. If you want C-c v to call a pdf-tools command you will need to rebind it.

rnkn commented 1 year ago

Several people have been confused by this command. It probably needs a rethink. Perhaps calling an export command should store the export filename in a local variable then attempt to open that file.

rnkn commented 1 year ago

You may have a better experience trying out the new (in 29.x) find-sibling-file command.

rnkn commented 10 months ago

The latest version will now export to PostScript/PDF and visit that exported file in a buffer.

drjswalker commented 10 months ago

That is a wonderful solution. Well done and thank you very much.

John Walker

P.S. sorry for.not replying to your earlier emails. I had CoVID and was quite ill.

On Sat, Oct 21, 2023, 10:42 PM Paul W. Rankin @.***> wrote:

Closed #136 https://github.com/rnkn/fountain-mode/issues/136 as completed.

— Reply to this email directly, view it on GitHub https://github.com/rnkn/fountain-mode/issues/136#event-10732576903, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVBPQEW6SUASRHH4XVATA3YASP4LAVCNFSM6AAAAAA2SEMD32VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJQG4ZTENJXGY4TAMY . You are receiving this because you authored the thread.Message ID: @.***>

rnkn commented 10 months ago

That's awful. I'm sorry to hear that.

Please test out the latest version and let me know how it works for you :)