nikivi Posted February 25, 2019 Share Posted February 25, 2019 I want to have a Keyword without any title as I trigger it through external trigger and find the text distracting. One way I can achieve this is to expand a variable that doesn't exist like so: And this works. But perhaps there is a better way to achieve this? Just curious as I can't actually leave the field blank, Alfred will complain. Link to comment
deanishe Posted February 25, 2019 Share Posted February 25, 2019 You can use an invisible (non-whitespace) Unicode character. I don't understand what the problem with a non-existent variable is, though. It's clearer than using an invisible character. Link to comment
vitor Posted February 25, 2019 Share Posted February 25, 2019 7 minutes ago, deanishe said: I don't understand what the problem with a non-existent variable is, though. I’m guessing the problem is that it feels like a hacky solution. Looking at it in the future after you forget (or another person looking at it), it will look like a mistake. 9 minutes ago, deanishe said: It's clearer than using an invisible character. That it is. If you’re using a hacky solution anyway, one that you can see is less likely to come back to bite you. nikivi 1 Link to comment
deanishe Posted February 25, 2019 Share Posted February 25, 2019 1 minute ago, vitor said: If you’re using a hacky solution anyway, one that you can see is less likely to come back to bite you. Yeah. That's what I was thinking. Assuming I couldn't remember exactly what I'd done (which is pretty common for me), I'd figure out {var:an-empty-keyword} a lot faster than an invisible character. nikivi 1 Link to comment
nikivi Posted February 25, 2019 Author Share Posted February 25, 2019 Thank you. Yeah as @vitor said it felt like a hacky solution. `{var:an-empty-keyword}` is perfect and clear, thank you @deanishe Link to comment
Andrew Posted February 25, 2019 Share Posted February 25, 2019 Interesting reading this thread - I'll add a note to remove the constraint there which prevents you saving when the title is empty, as I imagine that it has existed from before you could wire things into a keyword object. In the case of being a direct input (i.e. being show from an inbound connection), and there being no title, would you prefer there to be no result shown at all, just an input box? (instead of an empty result). Cheers, Andrew Link to comment
nikivi Posted February 25, 2019 Author Share Posted February 25, 2019 2 minutes ago, Andrew said: would you prefer there to be no result shown at all, just an input box? (instead of an empty result). That would be lovely. Link to comment
Andrew Posted February 25, 2019 Share Posted February 25, 2019 @nikivi Okie! I don't see a problem with that... I'll see what I can do nikivi 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now