Toss File
Sublime Text 3 plugin for copying the current file or all open files to new pre-mapped locations
Details
Installs
- Total 119
- Win 79
- Mac 23
- Linux 17
Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | Jul 13 | Jul 12 | Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | Jun 22 | Jun 21 | Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | Jun 12 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Toss File
Sublime Text plugin for copying the current file or all open files to new location(s)
Visual Studio Code equivalent: https://github.com/jbaranski/toss-file
Install
Using Package Control:
- In Sublime Text press
Ctrl+Shift+P
orCmd+Shift+P
- Type
install
, selectPackage Control: Install Package
- Find
Toss File
and install
Manual:
- Download the latest release
- Extract the contents of the zip into a folder called
Toss File
(the space is important in the folder name) - Copy the folder to
<SUBLIME_TEXT_HOME>/Data/Packages/
After install add some paths to your settings (see below) and now you're ready to go
Settings
Always use a trailing slash to end the paths you list (default is empty list)
*nix
"paths": [
{
"/home/source1/": "/home/destination1/"
},
{
"/home/source2/": "/home/destination2/"
}
]
Windows
"paths": [
{
"C:\\home\\source1\\": "C:\\home\\destination1\\"
},
{
"C:\\home\\source2\\": "C:\\home\\destination2\\"
}
]
Control how long the status message appears (in seconds) in the footer of the file the command was run in (default is 5)
"statusTimeout": 5
Prevent overwrite exisiting file at the output location if it already exists (default is true)
"replaceIfExists": false,
List of extensions to ignore even if a path match is found (default is empty list)
"extensionExcludes": [
".jar",
".zip",
".class"
]
List of file names to ignore even if a path match is found (default is empty list)
"nameExcludes": [
"File1.class",
"File1.java"
]
List of output paths to ignore even if a path match is found (default is empty list) (example output paths are based on *nix “paths” above)
"outputPathExcludes": [
"/home/destination1/build/",
"/home/destination1/topsecret/"
]
List of input paths to ignore even if a path match is found (default is empty list) (example output paths are based on *nix “paths” above)
"inputPathExcludes": [
"/home/source1/build/",
"/home/source1/topsecret/"
]
Example Scenarios
NOTE: Toss All Files
context menu item works exactly the same as Toss File
except it includes all currently open files
Invoke the plugin via Toss File
context menu item by right clicking on the current file, or pressing Ctrl+Shift+P
or Cmd+Shift+P
and executing the Toss File
command
Example 1 (assume you are using the settings listed above):
- Run the toss file command against a file, for example
/home/source1/my/special/file/file.txt
- The file is copied to
/home/destination1/my/special/file/file.txt
- If the directory at step 2 doesn't already exist, it will be created
Example 2 (assume you are using the settings listed above):
- Run the toss file command against a file, for example
/home/source77/my/special/file/file.txt
- No matches found, nothing happens