You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If used to process the entire file, then instead of doing inplace processing, one would have the possibility to execute said file-processor when the file is not saved, as well as be able to process the contents without automatically overwriting the file.
Example usage
I'm using process-palette to do, amongst other things, prettifying of code. E.g. via autopep8 (prettifier for python).
Say I have a pretty big python file and run the implemented autopep8, then I might want to see what it does to my file before it does it. Then this feature would now take the text in the editor as input and return a replacement of all the text in the input, without the file getting saved.
Implementation thoughts
I imagine that it should be quite straight forward to just add a "Delete all contents"-instruction before doing the regular "Write to active editor" target?
The text was updated successfully, but these errors were encountered:
I have found that outboard processes (such as running file content in a different editor session) can be launched from Atom through process-palette command (I call it Run Proxy). Simply pass {Atom-variables} as args using Python module argsparse. I keep my external (proxy) scripts in ~/.atom-scripts/ and the process-palette custom command runs the external script.
Motivation
If used to process the entire file, then instead of doing inplace processing, one would have the possibility to execute said file-processor when the file is not saved, as well as be able to process the contents without automatically overwriting the file.
Example usage
I'm using process-palette to do, amongst other things, prettifying of code. E.g. via autopep8 (prettifier for python).
Say I have a pretty big python file and run the implemented autopep8, then I might want to see what it does to my file before it does it. Then this feature would now take the text in the editor as input and return a replacement of all the text in the input, without the file getting saved.
Implementation thoughts
I imagine that it should be quite straight forward to just add a "Delete all contents"-instruction before doing the regular "Write to active editor" target?
The text was updated successfully, but these errors were encountered: