Git Product home page Git Product logo

kwick-actions's Introduction

Kwick Actions

About

Since there wasn't a straight forward way to have a keyboard shortcut map to a shell command, this small plugin lets you store up to 3 commands that you can create a custom keyboard shortcut for.

Link to Plugin

How to use

After installing the plugin, there will be a kwick titled drop down menu added in the main menu which looks like this.

The Edit Kwick Commands option will popup a dialog box that looks like this.

Add whatever commands you want to into the text fields and the OK button will save the commands.

Kwick Actions only provides this storing of a terminal command to an action. To create a shortcut of these commands, open

Preferences -> Keymap

and search for kwick, something like this should popup.

Here you can create a keyboard shortcut to the command you've run.

Example

Due to the exec command only running a single command each time, multiple shell commands are not yet supported, however writing them into a shell script and executing the script itself will work instead.

Code from script named git_sub_update.sh that updates the git submodules in a specific repo

#!/usr/bin/env bash

cd /Users/p/IdeaProjects/deletable
git submodule update --recursive --remote

And then in the kwick dialog box

Finally, the shortcut mapped for this command

Now, on G , โŒ˜ + S, the command is run and a popup on the bottom of the screen shows the command is run.

kwick-actions's People

Contributors

parshav avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.