« get me outta code hell

dotfiles - Miscellaneous configuration files of my personal use
about summary refs log tree commit diff
path: root/apps/Sublime Text 4/Packages/User/HSMusic Editing.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/Sublime Text 4/Packages/User/HSMusic Editing.py')
-rw-r--r--apps/Sublime Text 4/Packages/User/HSMusic Editing.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/Sublime Text 4/Packages/User/HSMusic Editing.py b/apps/Sublime Text 4/Packages/User/HSMusic Editing.py
index 232ecd3..6daa032 100644
--- a/apps/Sublime Text 4/Packages/User/HSMusic Editing.py
+++ b/apps/Sublime Text 4/Packages/User/HSMusic Editing.py
@@ -241,6 +241,13 @@ class EnterExitWikiTagCommand(_CursorAdaptiveCommand):
     else:
       return ('wrap', '[[', ']]', 'left')
 
+class WrapTextBoldCommand(_CursorAdaptiveCommand):
+  def handle_region(self, region):
+    if region.a == region.b:
+      return ('insert', 'right', '<b></b>', 4)
+    else:
+      return ('wrap', '<b>', '</b>', 'right')
+
 class ExitWikiTagCommand(_CursorAdaptiveCommand):
   def handle_region(self, region):
     rest_of_tag = _match_rest_of_tag_in_progress(self.view, region)