Jump to content
Sign in to follow this  
DevMan

Improve code editor

Recommended Posts

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.

Share this post


Link to post
Share on other sites

 

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

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites

 

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! :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Sign in to follow this  

×
×
  • Create New...