ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Mise

by guille ST4

A Sublime Text plugin that configures an interactive Build System using the mise task runner

Labels build system

Details

Installs

  • Total 7
  • Win 1
  • Mac 4
  • Linux 2
Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Mise build system for Sublime Text

A Sublime Text build system that integrates with mise to run tasks defined in your Mise configuration.

build example

What this does

Build system

This is a build system for the mise task runner — it is NOT for managing environments or tool installations. When using the provided build system it will:

  • List available tasks
  • Interactively prompt you for a task to run
  • Execute that task and how syntax-highlighted output in Sublime Text's build output panel

Command

Another way of interacting with Mise is through the “Run Mise task” command, available in the Command Palette. This will fetch the available tasks defined in your project and give you a menu to select from. The selected task will be ran.

In order to find the directory from which to run Mise, the preference is: 1. The current open file's directory. 2. The first directory you have in the sidebar/project. 3. Your $HOME directory.

Installation

Package Control

  1. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
  2. Search for “Package Control: Install Package”
  3. Search for “Mise” and install

Manual

Put this repository inside your Sublime Text Packages folder.

Usage

  1. Open a file in your project (must be within a directory containing mise.toml or mise.local.toml)
  2. Select Tools > Build System > Mise (or let Sublime auto-detect it)
  3. When prompted, type the name of the task you want to run and press Enter

Requirements

  • mise must be in Sublime's PATH

Limitations and future work

  • It hasn't been tested on Windows. Let me know if it works or not so I can fix it/remove this line.
  • Doesn't support all the config file paths Mise supports. That means if you store your mise config in e.g. mise/config.toml, Sublime won't offer you Mise as an option. You can still force-select it.
  • Planned features (read: will likely never bother, feel free to open a PR)
    • Better syntax highlighting of the results.
    • A “Mise Exec” build system that prompts the user for any command and does mise exec -- $input