Skip to content

Commit

Permalink
clean up code and update settings
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnicollo committed Jan 31, 2025
1 parent 816e82b commit 1ce1309
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ __pycache__
.bak
# Generated by GoodSync
/_gsdata_/
/click_talon/_gsdata_/
/personal_extras/_gsdata_/
# Customized Files
core/system_paths-*.talon-list
2 changes: 0 additions & 2 deletions apps/vscode/vscode.talon
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ tag(): user.multiple_cursors
tag(): user.splits
tag(): user.tabs
tag(): user.command_search
# chrisnicollo EDIT: enabling wrapper snippets with cursorless
tag(): user.cursorless_experimental_snippets

window reload: user.vscode("workbench.action.reloadWindow")
window close: user.vscode("workbench.action.closeWindow")
Expand Down
1 change: 1 addition & 0 deletions core/homophones/homophones.csv
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ side,sighed
size,sighs
site,sight,cite
sink,sync
sinking,syncing
slay,sleigh
slight,sleight
slow,sloe
Expand Down
10 changes: 5 additions & 5 deletions core/numbers/numbers_unprefixed.talon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# not tag: user.prefixed_numbers
# -
# <user.number_string>:
# insert("{number_string}")
# user.deprecate_command("2024-01-27", "<number>", "numb <number>")
not tag: user.prefixed_numbers
-
<user.number_string>:
insert("{number_string}")
user.deprecate_command("2024-01-27", "<number>", "numb <number>")
3 changes: 1 addition & 2 deletions lang/c/c.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ def c_cast(m) -> str:
return "(" + " ".join(list(m)) + ")"


# def c_stdint_cast(m) -> str: # chrisnicollo EDIT: had changed function name to match spoken command
@mod.capture(rule="[<self.stdint_signed>] <self.stdint_types> [<self.c_pointers>+]")
def stdint_cast(m) -> str:
"Returns a string"
Expand Down Expand Up @@ -371,7 +370,7 @@ def code_insert_false():
actions.auto_insert("false")

def code_comment_line_prefix():
actions.auto_insert("// ") # chrisnicollo EDIT - Added a space to the end
actions.auto_insert("// ") # chrisnicollo EDIT: Added a space to the end

def code_insert_function(text: str, selection: str):
if selection:
Expand Down
2 changes: 1 addition & 1 deletion lang/csharp/csharp.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def code_import():
actions.auto_insert("using ")

def code_comment_line_prefix():
actions.auto_insert("// ") # chrisnicollo EDIT - Added a space to the end
actions.auto_insert("// ") # chrisnicollo EDIT: Added a space to the end

def code_insert_function(text: str, selection: str):
text += f"({selection or ''})"
Expand Down
2 changes: 1 addition & 1 deletion lang/javascript/javascript.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def code_operator_bitwise_right_shift_assignment():
actions.auto_insert(" >>= ")

def code_comment_line_prefix():
actions.auto_insert("//")
actions.auto_insert("// ") # chrisnicollo EDIT: Added a space to the end

def code_insert_function(text: str, selection: str):
text += f"({selection or ''})"
Expand Down
5 changes: 3 additions & 2 deletions settings.talon
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ settings():
user.file_manager_auto_show_pickers = false

# Set the number of command lines to display per help page
# chrisnicollo EDIT - was originally 50
# chrisnicollo EDIT: was originally 50
user.help_max_command_lines_per_page = 35

# Set the number of contexts to display per help page
Expand Down Expand Up @@ -95,4 +95,5 @@ settings():
# By default saying "one" would write "1", however many users find this behavior
# prone to false positives. If you uncomment this, you will need to say
# "numb one" to write "1". Note that this tag will eventually be activated by default
# tag(): user.prefixed_numbers
# chrisnicollo EDIT: uncommented the tag to require numbers to be said with a prefix
tag(): user.prefixed_numbers

0 comments on commit 1ce1309

Please sign in to comment.