DevMan Posted November 1, 2014 Share Posted November 1, 2014 Hey! It would be nice if you could add syntax highlighting, line numbers and probably themes into the workflow "Run Script" window. I do believe it's not so difficult to implement. Thanks in advance. Link to comment Share on other sites More sharing options...
Andrew Posted November 1, 2014 Share Posted November 1, 2014 Hey! It would be nice if you could add syntax highlighting, line numbers and probably themes into the workflow "Run Script" window. I do believe it's not so difficult to implement. Thanks in advance. The main reason I have avoided turning Alfred's editors into fully featured editors is that this could become a very deep rabbit hole. Instead, I recommend that for more complex scripts, you simply use the editor box to bootstrap to a script which is stored within that workflow's folder. This way, you can use your favourite editor or IDE to create your workflow and as Alfred runs scripts with pwd as ./ the script will just work. Cheers, Andrew Link to comment Share on other sites More sharing options...
DevMan Posted November 1, 2014 Author Share Posted November 1, 2014 I totally agree with you, it's not necessary to turn editor into fully featured code editor. But, periodically you slightly modify workflow script, run workflow and get something like "syntax error at line 33" just because you miss brace or something like this. In other words having line numbers at least would be great. In any way thank you for the response and such great product! Link to comment Share on other sites More sharing options...
Andrew Posted November 1, 2014 Share Posted November 1, 2014 I totally agree with you, it's not necessary to turn editor into fully featured code editor. But, periodically you slightly modify workflow script, run workflow and get something like "syntax error at line 33" just because you miss brace or something like this. In other words having line numbers at least would be great. In any way thank you for the response and such great product! I'll deffo add a note to look into adding line numbers, I agree! DevMan 1 Link to comment Share on other sites More sharing options...
DevMan Posted November 1, 2014 Author Share Posted November 1, 2014 Thank you very much Andrew. I would be really grateful. Link to comment Share on other sites More sharing options...
kbrock Posted May 4, 2016 Share Posted May 4, 2016 I find the packaging a little tricky. Storing the script in a separate file is easier for version control, github browsing, and packaging up the final product. But storing the script in the workflow itself makes the experience from the workflow view much better. Could there be a way to modify the way a script is referenced in the UI so this distinction is lessened. Then adding a feature like a line numbers wouldn't feel like a rabbit hole Link to comment Share on other sites More sharing options...
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