Skip to content

Run Custom Commands (filter) #11045

Closed
Closed

Description

@W4RH4WK

There already a couple of extensions available doing a very similar thing, running a custom command. I am not talking about something like the Task runner which is already part of vscode, but of extensions like these:

My proposal is to add these features to the vscode so people don't have to rely on extensions for these things. I am thinking about a more generic version which lets you:

  • Execute a custom commands
  • Execute a custom commands in the integrated terminal
  • Pre-configure commands in the user's config
  • Bind custom keyboard shortcuts to (pre-configured) commands
  • Have variables available which get replaced with things like the current filepath, filename, working directory, line number, preferred line length (for par)
  • Pass selected text to command
  • Filter selected text with command (like sort -r)
  • Read in output of a command

Maybe even:

  • Attach triggers like onSave to a command

Let me know what you think about integrating this directly into vscode. Keep in mind that vi's :! covers a lot of these cases and has been a feature right from the start.

Activity

  1. faustinoaq commented on Aug 27, 2016

    @faustinoaq
    Contributor

    Maybe a plugin that puts it all together. XD

  2. sandy081 commented on Aug 29, 2016

    @sandy081
    Member

    Alex Hirsch (@W4RH4WK) Main goal of VS Code is to be simple, fast and light weight. We made it open to the community to extend and customize it based on the needs. Those who are using it as a simple editor might not need this functionality.

    Above requirement is a perfect example of customizing it and using it as required.

    Thanks.

  3. added
    *extension-candidate
    on Aug 29, 2016
  4. geddski commented on Nov 18, 2016

    @geddski

    I wrote an extension for running custom series of commands (aka macros). Feedback welcome.

    https://marketplace.visualstudio.com/items?itemName=geddski.macros

  5. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    *extension-candidate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions