-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into pokey/initial-work-to…
…wards-next-gen-collectionitem
- Loading branch information
Showing
3,358 changed files
with
20,212 additions
and
14,138 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: "Lua Language Server Lint" | ||
description: "Lints all lua files with lua-language-server" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: cachix/install-nix-action@v27 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- uses: DeterminateSystems/magic-nix-cache-action@v2 | ||
- run: nix profile install --accept-flake-config .#lua-language-server | ||
shell: bash | ||
- run: scripts/lint-lua-ls.sh | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"runtime.version": "Lua 5.1", | ||
"diagnostics.ignoredFiles": "Disable", | ||
"diagnostics.globals": ["vim", "talon", "it", "describe"], | ||
"workspace.ignoreDir": ["data/playground/lua/", ".luarocks", ".lua"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
cursorless-everywhere-talon/cursorless_everywhere_talon.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
from typing import TypedDict | ||
|
||
from talon import Module | ||
|
||
|
||
class SelectionOffsets(TypedDict): | ||
anchor: int | ||
active: int | ||
|
||
|
||
class EditorState(TypedDict): | ||
text: str | ||
selections: list[SelectionOffsets] | ||
|
||
|
||
class EditorChange(TypedDict): | ||
text: str | ||
rangeOffset: int | ||
rangeLength: int | ||
|
||
|
||
class EditorEdit(TypedDict): | ||
# The new document content after the edit | ||
text: str | ||
|
||
# A list of changes that were made to the document. If you can not handle | ||
# this, you can ignore it and just replace the entire document with the | ||
# value of the `text` field above. | ||
changes: list[EditorChange] | ||
|
||
|
||
mod = Module() | ||
|
||
mod.tag("cursorless_everywhere_talon", desc="Enable cursorless everywhere in Talon") | ||
|
||
|
||
@mod.action_class | ||
class Actions: | ||
def cursorless_everywhere_get_editor_state() -> EditorState: # pyright: ignore [reportReturnType] | ||
"""Get the focused editor element state""" | ||
|
||
def cursorless_everywhere_set_selections( | ||
selections: list[SelectionOffsets], # pyright: ignore [reportGeneralTypeIssues] | ||
): | ||
"""Set focused element selections""" | ||
|
||
def cursorless_everywhere_edit_text( | ||
edit: EditorEdit, # pyright: ignore [reportGeneralTypeIssues] | ||
): | ||
"""Edit focused element text""" |
Oops, something went wrong.