torcAddons is an addon package for glitch.com
to use any or all features, install a code injection/userscript extension such as tampermonkey or Resource Override and add the desired code.
for every addon, the base driver script torcAddons.js
must also exist, and must be run prior to the other scripts.
if you are using a UserScript extension, you can install the scripts here: https://openuserjs.org/users/torcado/scripts
additionally, these scripts will auto-update as i push fixes and features to this repository.
sets up common methods and events for the other addons to use.
adds a search bar to the filetree to show/hide files. Also supports regex parsing.
adds a "favorite" star button next to each file, allowing you to add or remove files to a favorites list. a list of favorited files is displayed above the filetree. favorites are saved to local storage and are tied to the project.
adds visual guides to indentation in the code
automatically correctly indents code when you paste it. you can prevent this behavior with ctrl+shift+v.
adds a visual color component next to css colors
allows certain characters to wrap selections rather than replace the selection, such as (parentheses)
adds an 'update' button which allows a project to update without needing to edit a watched file this works well in conjunction with the following
watch.json
file:
{
"install": {
"include": [
"^.torc-update$"
]
},
"throttle": 10
}
saves the state of the filetree across loads
adds a (real) filetree view to the file browser, including directory collapsing. it also comes with a file searchbar, automatically hiding files not matching the search.