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

How to use variable in triggers/custom links actions #1316

Closed
matclab opened this issue Mar 2, 2018 · 3 comments
Closed

How to use variable in triggers/custom links actions #1316

matclab opened this issue Mar 2, 2018 · 3 comments

Comments

@matclab
Copy link

matclab commented Mar 2, 2018

I tried to launch a specific command (pass show -c user@hostname) upon certain text occurrence, but I would need to access hostname and username state variables, which doesn't seem to work.

I also tried with a notification, but the notification displays title=${hostname} and does neither expand the variable nor set the title variable…

So, I'm a bit lost about what is possible and what is not possible here. Could you possibly give us some indication about which state variable may be used and how and when ?

@gnunn1
Copy link
Owner

gnunn1 commented Mar 3, 2018

Right now it doesn't replace the environment variable style tokens that you can use in titles. I think that is a good idea though if that is what you are asking for in terms of a feature enhancement.

@matclab
Copy link
Author

matclab commented Mar 4, 2018

Yes, it would be a nice feature enhancement !

Also an example on how to set title for Notification triggers in https://github.com/gnunn1/tilix/wiki/Triggers would be appreciated.

@matclab
Copy link
Author

matclab commented Apr 17, 2018

Thanks a lot.
I'll test it soon.

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

No branches or pull requests

2 participants