Giter Site home page Giter Site logo

Comments (3)

anonfunc avatar anonfunc commented on July 25, 2024

All commands are executed in the context of the current editor. If you need behavior matching the paste shortcut, use the keyboard shortcut.

from intellij-voicecode.

xavier630 avatar xavier630 commented on July 25, 2024

Sorry, just for my understanding, are we closing this because it's too difficult to do (in that case maybe it could remain open as a long-term FR) or because we don't want this behavior?

If we don't want this behavior, could you please elaborate a little about why just so that we're on the same page?

from intellij-voicecode.

anonfunc avatar anonfunc commented on July 25, 2024

I closed it because it seemed like a misunderstanding of the plugin and its role in coordination with your Talon scripts. I'll go ahead and re-open it.

The main purpose of this plugin is to run commands in the current active editor in a way that's keybinding agnostic. The remaining functionality is to either provide feedback to the driving Talon package or to implement commands from VoiceCode which are difficult to do without state. (PSI ranges, selecting forward/back, etc.)

This is why the original Talon contexts for IntelliJ tried to detect popup windows and dialogs so that normal commands are used instead. (Looking at the current knausj repo, all of that functionality seems to have been lost. You can test this by opening a modal and attempting to paste.)

Assuming you did modify this plugin to send commands to non-editor components, you'd also need to plumb that state back into Talon so you can send the correct commands. That is, EditorPaste vs Terminal.Paste.

And after all that, you would have built a paste command that does multiple RPC calls and lookups in order to emulate a subset of the behavior of pressing the original keyboard shortcut.

from intellij-voicecode.

Related Issues (11)

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.