torcAddons for glitch

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.

all of the scripts have been updated to comply with the UserScript format

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.

addons

base

UserScript download

sets up common methods and events for the other addons to use.

fileSearch

UserScript download

adds a search bar to the filetree to show/hide files. Also supports regex parsing.

fileSearch.gif

favorite

UserScript download

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.

favorite.gif

indentGuides

UserScript download

adds visual guides to indentation in the code

indentGuides.gif

pasteAndIndent

UserScript download

automatically correctly indents code when you paste it. you can prevent this behavior with ctrl+shift+v.

pasteAndIndent.gif

colors

UserScript download

adds a visual color component next to css colors

colors.gif

wrapSelection

UserScript download

allows certain characters to wrap selections rather than replace the selection, such as (parentheses)

wrapSelection.gif

manualUpdate

UserScript download

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
}

treeState

UserScript download

saves the state of the filetree across loads


[Deprecated]

filetree

UserScript download

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.

filetree.gif