save-actions

Runs the specified Atom or system shell commands before or after saving a file.

MeiyoDev

210

0

1.0.0

MIT

GitHub

Save Actions

Screenshot

This is a package for the Atom text editor to run the specified commands when saving a file.

Features

Usage

Editing the command list

Select the "Save Actions" sub-item in the "Packages" main menu item to open the command list editing window. In this window you can add commands with the desired properties, edit and delete them.
Press the "Save" button to apply the changes or just close the window to discard them.

Using placeholders

You can use the following placeholders to specify the file path in commands
(e.g. echo "File %FILE_NAME% from folder %FILE_DIR% has just been saved!"):

Placeholder Description Example value
%FILE_PATH% The absolute file path. /home/dev/projectX/lib/core.js
%FILE_DIR% The absolute path to the file's directory. /home/dev/projectX/lib
%FILE_NAME% The full filename. core.js
%FILE_NAME_BASE% The base filename. core
%FILE_NAME_EXT% The file extension. .js
%PROJECT_DIR% The absolute path to the project's directory. /home/dev/projectX
%PROJECT_FILE_PATH% The relative path to the file in the project. lib/core.js
%PROJECT_FILE_DIR% The relative path to the file's directory in the project. lib

Acknowledgments

Support Save Actions

If you use Save Actions and it makes your life better or you just like it and you want it to continue to be supported and developed, please donate to BTC: 3MxqMNvZGLyFKkQ62WSiVXmaYLuwNv5Tpj

BTC QR