nikivi Posted January 29, 2018 Posted January 29, 2018 (edited) I would like to modify this workflow. There is a file filter swikifold that searches for folders inside a folder I specified. In my case there is one `knowledge` root folder that can be seen here and many other folders inside it. There is a modifier action alt here: That will do either of two things. It will create a folder at the root of my knowledge folder or if the passed in path is not my root folder, it will create the folder in the designated path. It also asks me what name I want to give to the folder. The problem is with these two filters here: The workflow can't do the filtering it seems. When I call my workflow, the workflow dismisses. I am not sure why. Nor do I know how I can rewrite it to fix this so it works for both these cases. If there is only one filter there, everything works. I attached my workflow above. Would love to get any help on this. Thank you. Edited January 29, 2018 by nikivi
deanishe Posted January 29, 2018 Posted January 29, 2018 I can't run the workflow, as it's specific to your system and its directories, but your regex before the filters is messed up and is probably an issue. (\/Users\/nikivi\/src\/github\/nikitavoloboev\/personal\/knowledge\/) is broken. There's no need for the brackets, as you're not trying to capture any submatches, and the backslashes are plain wrong: you only need to escape slashes when they're the "this is a regex" delimiter, like in JavaScript or vim. That isn't the case here. In fact, there doesn't appear to be any need for a regex at all. A simple string match would be much better. nikivi 1
nikivi Posted January 29, 2018 Author Posted January 29, 2018 (edited) Thank you @deanishe String matching works well. For some reason I thought it would be matching an entire string, not part of the string thus I chose Regex. Now I know. Edited January 29, 2018 by nikivi
nikivi Posted January 29, 2018 Author Posted January 29, 2018 (edited) I added the edited workflow to small workflows in case anyone wants to download it. It's inside Personal workflows category on the bottom. Edited January 29, 2018 by nikivi
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