-
Notifications
You must be signed in to change notification settings - Fork 863
Add common C# keywords and functions to Talon lists #2225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
3468311
abe99cb
a6d790f
30a507b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| list: user.code_keyword | ||
| code.language: csharp | ||
| code.language: aspnetcorerazor | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can code.language get set to this if we do not have the language defined in Community? Can you check if this triggers with
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From the community backlog session — we are aware that this is in another PR. Consider removing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When VS Code reports Useful? React with 👍 / 👎. |
||
| - | ||
|
|
||
| abstract: " abstract ", | ||
|
Mark-Phillipson marked this conversation as resolved.
Outdated
|
||
| add: " add ", | ||
| alias: " alias ", | ||
| ascending: " ascending ", | ||
| async: " async ", | ||
| await: " await ", | ||
| base: " base ", | ||
| boolean: " bool ", | ||
| break: " break ", | ||
| case: " case ", | ||
| catch: " catch ", | ||
| class: " class ", | ||
| const: " const ", | ||
| continue: " continue ", | ||
| default: " default ", | ||
| delegate: " delegate ", | ||
| descending: " descending ", | ||
| double: " double ", | ||
| dynamic: " dynamic ", | ||
| else: " else ", | ||
| enum: " enum ", | ||
| equals: " equals ", | ||
| event: " event ", | ||
| explicit: " explicit ", | ||
| extern: " extern ", | ||
| false: " false ", | ||
| finally: " finally ", | ||
| for: " for ", | ||
| foreach: " foreach ", | ||
| from: " from ", | ||
| get: " get ", | ||
| global: " global ", | ||
| group: " group ", | ||
| if: " if ", | ||
| implicit: " implicit ", | ||
| in: " in ", | ||
| integer: " int ", | ||
| interface: " interface ", | ||
| internal: " internal ", | ||
| into: " into ", | ||
| is: " is ", | ||
| join: " join ", | ||
| let: " let ", | ||
| lock: " lock ", | ||
| name of: " nameof ", | ||
| namespace: " namespace ", | ||
| new: " new ", | ||
| null: " null ", | ||
| operator: " operator ", | ||
| order by: " orderby ", | ||
| out: " out ", | ||
| override: " override ", | ||
| params: " params ", | ||
| partial: " partial ", | ||
| private: " private ", | ||
| protected: " protected ", | ||
| public: " public ", | ||
| read only: " readonly ", | ||
| ref: " ref ", | ||
| remove: " remove ", | ||
| required: " required ", | ||
| return: " return ", | ||
| sealed: " sealed ", | ||
| select: " select ", | ||
| set: " set ", | ||
| size of: " sizeof ", | ||
| static: " static ", | ||
| string: " string ", | ||
| struct: " struct ", | ||
| switch: " switch ", | ||
| this: " this ", | ||
| throw: " throw ", | ||
| true: " true ", | ||
| try: " try ", | ||
| type of: " typeof ", | ||
| unsafe: " unsafe ", | ||
| using: " using ", | ||
| value: " value ", | ||
| var: " var ", | ||
| virtual: " virtual ", | ||
| volatile: " volatile ", | ||
| void: " void ", | ||
| where: " where ", | ||
| while: " while ", | ||
| yield: " yield " | ||
|
Comment on lines
+6
to
+90
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From the community backlog session — our general pattern is not to include leading spaces in |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,18 @@ | ||
| from talon import Context, actions, settings | ||
| from talon import Context, Module, actions, settings | ||
|
|
||
| from ...core.described_functions import create_described_insert_between | ||
| from ..tags.operators import Operators | ||
|
|
||
| mod = Module() | ||
|
|
||
| ctx = Context() | ||
| ctx.matches = r""" | ||
| code.language: csharp | ||
| """ | ||
|
|
||
| mod.list("code_common_function", desc="Common C# functions") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should not be redefining these lists on a module. |
||
| mod.list("code_keyword", desc="Common C# keywords") | ||
|
Comment on lines
+13
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
These lists are already declared as Useful? React with 👍 / 👎. |
||
|
|
||
| operators = Operators( | ||
| # code_operators_array | ||
| SUBSCRIPT=create_described_insert_between("[", "]"), | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.