diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2019-12-07 23:06:14 +0100 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2019-12-07 23:06:14 +0100 |
commit | cdc9057adf122944ace0fc89d0a9f1e31c9a7ada (patch) | |
tree | 3609df8bc560e1e2b0af024cc2372a104960f639 /User/fold_selections.py | |
download | sublime-text-3-packages-cdc9057adf122944ace0fc89d0a9f1e31c9a7ada.tar.gz sublime-text-3-packages-cdc9057adf122944ace0fc89d0a9f1e31c9a7ada.tar.bz2 sublime-text-3-packages-cdc9057adf122944ace0fc89d0a9f1e31c9a7ada.zip |
init
Diffstat (limited to 'User/fold_selections.py')
-rw-r--r-- | User/fold_selections.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/User/fold_selections.py b/User/fold_selections.py new file mode 100644 index 0000000..9a82b4d --- /dev/null +++ b/User/fold_selections.py @@ -0,0 +1,8 @@ +import sublime +import sublime_plugin + + +class FoldSelectionsCommand(sublime_plugin.TextCommand): + def run(self, edit): + for r in self.view.sel(): + self.view.fold(r) |