GithubHelp home page GithubHelp logo

andreasarvidsson / andreas-talon-vscode Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 2.0 1.37 MB

VSCode extension used by Talon Voice

Home Page: https://marketplace.visualstudio.com/items?itemName=AndreasArvidsson.andreas-talon

License: MIT License

TypeScript 99.72% Scheme 0.28%
talonvoice vscode vscode-extension

andreas-talon-vscode's Introduction

Hi there ๐Ÿ‘‹

I am a software engineer who codes only by voice. I spend my spare hours building open source tools primarily for voice control, like Cursorless. Besides programming I have a passion for audio and sound reproduction which led me to develop my own digital sound processor, WinDSP, that has been the brain of my home theatre system for years.

If you like to talk about voice control, join Talon slack and if you like to support my work, please consider sponsoring me ๐Ÿ˜Š

andreas-talon-vscode's People

Contributors

andreasarvidsson avatar andrewdant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

andreas-talon-vscode's Issues

feature request: jump to definition for dynamic lists

@mod.capture(rule="{user.code_symbol}")
def code_symbol(m) -> str:
    return m.code_symbol

from {user.code_symbol} to @ctx.dynamic_list("user.code_symbol"):

@ctx.dynamic_list("user.code_symbol")
def code_symbol_list(phrase) -> dict[str, str]:
    global spoken_map
    t = time.perf_counter()
    types = get_types_from_workspaces()
    spoken_map = generate_spoken_forms(types)
    print("Generating code_symbol list: ", len(spoken_map))
    print(f"{int((time.perf_counter()-t)*1000)}ms")
    return spoken_map

Respect labelFormat setting

First of all, thanks for releasing this publicly! Just the tabs view alone is super useful for the one thing I kept resorting to the mouse without fail when using Cursorless.

Would it be possible to respect the "Label Format" setting to make multiple tabs with the same file name easier to switch between? (Or something similar as doing exactly the same may be a bit difficult)

VSCode Setting

SO answer with pictures of how this works in default tabs; https://stackoverflow.com/a/50181247/1413689

CleanShot 2023-09-21 at 12 16 08

Current Problem

CleanShot 2023-09-21 at 12 16 13

Hackaround

I've hacked a solution by putting the following snippet in createItem but it's not "great" as I couldn't figure out how to get the whole tree to figure out any duplicates.

const resourceUri = tab.input instanceof vscode.TabInputText ? tab.input.uri : undefined;
const relativePath = vscode.workspace.asRelativePath(resourceUri);
const labelParts = [hint.padStart(2), " - ", relativePath || tab.label];

CleanShot 2023-09-21 at 12 48 07

can't hover / go to definition for files/folders in .gitignore

not sure if this is on purpose or not but the hover / go to definition does not work if the .talon-list file is in the .gitignore.

My use case is having private settings with my own .talon-list files. They are not known by git to avoid sharing them publicly but they are listed in vscode and I find them searching for them but the andreas-talon-vscode extension does not find them for hover / go to definition.

Extension is removing QuickFixes from other extensions.

When using this and eslint, VSCode no longer can load any "Quick Fixes".
Disabling this extension restores the Quick Fixes from eslint.

When it fails it seems to try for a very, very long time to resolve the "Quick Actions".

The only error I could find in the logs was this (not sure it's relevant though).

2023-10-25 12:51:57.665 [warning] AndreasArvidsson.andreas-talon - Code actions of kind 'quickfix 'requested but returned code action is of kind 'refactor.rewrite'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code actions.

feature request: jump to definition for user action (ctx -> module)

hover or go definition of a user defined action defined in a context to jump to a definition in a module

for instance for go_back:

@ctx.action_class("user")
class UserActions:
    def go_back():
        //...

    def go_forward():
        //...

we would find all the definitions and find this:

@mod.action_class
class Actions:
    def go_back():
        """Navigate back"""
        actions.key("alt-left")

    def go_forward():
        """Navigate forward"""
        actions.key("alt-right")

The main advantage is if there are multiple definitions. And also compared a workspace search where we find all the occurrences so lots of other contexts, we don't jump directly to definitions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.