Jump to content

Using Query as variable name


Recommended Posts

It doesn't seem possible to use an incoming query as a variable name.

I would like to use {var:{query}} to resolve an environment variable.

In my specific case, I have many ports on my local network that I would like to access easier. So, in my environment vars I have:
website1 | 5000
website2 | 6000
website3 | 7000

baseurl | localhost:

I have a keyword "server", and I'd like to open {var:baseurl}{var:{query}}

Therefore, searching "server website1" I'd like to resolve to localhost:5000 to open in a browser.

What's the best way in Alfred to achieve this?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...