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

Open a reference's file with a custom program #30

Open
Djoop opened this issue Jul 7, 2022 · 3 comments
Open

Open a reference's file with a custom program #30

Djoop opened this issue Jul 7, 2022 · 3 comments

Comments

@Djoop
Copy link

Djoop commented Jul 7, 2022

Hi, I'm using a lot citation.vim to open the articles (the actual pdf files). Following the readme I'm using

nnoremap <silent>[unite]co :<C-u>Unite -input=<C-R><C-W> -default-action=start -force-immediately citation/file<cr>

It works well but the files are opened with the default pdf viewer. I do use 2 different pdf viewers depending on whether I want to read or annotate the articles, so how could I adapt the previous command to open the article with a custom program? The fact that it goes through unite makes it difficult for me to understand how the command above can be adapted… maybe it's actually more a question related to unite than this plugin, but I'm not sure.

@rafaqz
Copy link
Owner

rafaqz commented Jul 7, 2022

Yeah unite. But then, its still just your system tool. On Linux I think its xgd-open. You can set your defaults in these tools.

@Djoop
Copy link
Author

Djoop commented Jul 8, 2022

Thanks. But so what if I don't want to change the default but really define a new shortcut… is there a way to just fetch the path to the file and just use it in any custom command? Or the only way is via citation/file, and thus really via unite? Well if it is the only way, I'll double check unite documentation and this can be closed.

@rafaqz
Copy link
Owner

rafaqz commented Jul 8, 2022

Im not sure, check the unite docs.

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