Jump to content
nikivi

[SOLVED] Clean way to have a Keyword without a Title

Recommended Posts

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: 

 

913234628_2019-02-25at16_49.png.761a466f98b580c25a831821a517c446.png

 

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.

Share this post


Link to post

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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post

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

Share this post


Link to post
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.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...