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

Pass current file name to TermExec #35

Closed
lunw1024 opened this issue May 9, 2021 · 3 comments · Fixed by #38
Closed

Pass current file name to TermExec #35

lunw1024 opened this issue May 9, 2021 · 3 comments · Fixed by #38

Comments

@lunw1024
Copy link

lunw1024 commented May 9, 2021

As in #12, I'm trying to pass the current file name to TermExec.
However after the syntax update, TermExec cmd='a'.expand('%').'b' no longer works, it only considers a as the command.

@akinsho
Copy link
Owner

akinsho commented May 9, 2021

@IDl0T can you try #36 I implemented the functionality suggested in #12 to replace the broken syntax, so that user can now do cat % and have that expand to the current filename

@lunw1024
Copy link
Author

It does work! Thanks for such a quick fix.

@lunw1024
Copy link
Author

However, when I try to run TermExec cmd='g++ -std=c++17 % -o run', the command got truncated to g++ -st.
Seems like everything after -st are truncated.

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