Giter Club home page Giter Club logo

sublime-lastterminal's Introduction

Sublime LastTerminal

Convenient Sublime Text commands for re-running your last terminal command.

Just git clone this repo into your ~/Library/Application Support/Sublime Text 3/Packages directory and you're good to go.

You can find the commands in the command palette under "Sublime LastTerminal", or map any of these commands to whatever shortcuts you want:

run_last_terminal

By default, this package uses macOS's built-in Terminal.app. If you want to use iTerm, you can do so by setting "lastterminal-sublime-terminal": "iTerm" in your settings.

Options

Below are the options supported by this package. They are set in the user preferences file (Preferences.sublime-settings -- User). You can get to these by pressing โŒ˜ + ,, or by going to Sublime > Preferences > Settings


lastterminal-sublime-terminal string -- optional -- default: "Terminal"

By default, this package will attempt to open the OS X Terminal.app application for executing tests.

If you prefer to use iTerm.app set the value for this property to "iTerm".

lastterminal-sublime-autofocus boolean -- optional -- default: false

If you want to re-focus sublime after you start your tests, set this to true. The package will automatically switch focus back to the last Sublime window you had focused.

Note: This happens pretty much immediately, so if your terminal window is behind your sublime window -- you'll miss all the terminal output. If you activate this, best to make sure your Sublime and Terminal apps aren't stacked.

lastterminal-sublime-autofocus-delay int -- optional -- default: 100

The time, in milliseconds, you want to wait before re-focusing Sublime. If lastterminal-sublime-autofocus is false, this option is ignored. This is best used if things are moving too fast for your machine and you need to introduce a delay. Most won't need it.

Note: This delay happens on the main Sublime thread. You should NOT try to estimate how long your test suite will run and put that value here. You will end up beach-balling Sublime for the duration of the delay.

This repository is based upon Adam Wathan's excellent https://github.com/adamwathan/sublime-phpunit and includes some of Jim Rubenstein's additions https://github.com/jrub-forks/sublime-phpunit

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.