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

Howto get absolute filepath in macro #58

Closed
chrys87 opened this issue Apr 24, 2019 · 1 comment
Closed

Howto get absolute filepath in macro #58

chrys87 opened this issue Apr 24, 2019 · 1 comment

Comments

@chrys87
Copy link

chrys87 commented Apr 24, 2019

Howdy,

Ne is very awsome. I very enjoy the macro capabilities. Is there a way to get the full filepath of the current document in macro to pass it i.e. to an shellscript? I want to save the file with same name but in an different format and extenstion.

A macro to „export my current markdown file to pdf“ without asking for the filename over and over :).
Example
Current filename:
/tmp/test.md
Should be passed to pandoc and saved as
/tmp/test.pdf

For doing dis i want to pass the filename to a shellscript as parameter in „system“.
This would give a huge powerful set of abilitys to scripting

Cheers chrys

@chrys87 chrys87 changed the title Howto get absolute filepath Howto get absolute filepath in macro code Apr 24, 2019
@chrys87 chrys87 changed the title Howto get absolute filepath in macro code Howto get absolute filepath in macro Apr 24, 2019
@vigna
Copy link
Owner

vigna commented Jun 18, 2020

No, there's no way currently.

@vigna vigna closed this as completed Jun 18, 2020
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

No branches or pull requests

2 participants