Jump to content
GuiB

Filter results (match): word boundary or space delimited ?

Recommended Posts

Sorry @Andrew for asking you directly, but I think you're the only one that really know the answer since you're the one implementing it...

 

I've been testing/using the new Match Mode of the Script Filters and I thought that when you said word boundaries that would mean word separated by white spaces. However, from testing this seems to be only true for word delimited by spaces. So, any other white spaces directly in front of a word (newline '\n' or tab '\t') would make this word to never match... At the moment I'm modifying the string before setting the 'match' item of the JSON to replace '\n' and '\t' with space, but I was wondering if this was your intention to only allow spaces to delimit words ?

 

Here is a workflow to show you an example. Filter the results with the word 'match' [wbf match] and you will see that not all items are kept: https://nofile.io/f/sx6xst0g3RC/Example-Word+Boundary+Filtering.alfredworkflow

 

I'm repeating myself, but thanks for this addition in Alfred! :)

 

Best!

Share this post


Link to post

ok, so simply whitespaces = simply spaces at the moment (other whitespace elements are for later)

 

Thanks for confirming and I'll keep modifying my strings while a wider range of word boundaries isn't possible. However, to make it clearer for the user and avoid any confusion, maybe you should specify that word boundaries are delimited by spaces instead of using the word "whitespaces" since whitespace habitually means any character that add space between word in a text (I mean, newlines and tabs are also whitespaces, so it's a little confusing)

Edited by GuiB

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...