GithubHelp home page GithubHelp logo

jobber.nvim's Introduction

Jobber.nvim

Very simple plugin for neovim which lets you define different command groups, each of which gets run in its own terminal split in a new window when called

Installation

With lazy.nvim:

{
    "mr55p-dev/jobber.nvim",
    dependencies = { "pianocomposer321/consolation.nvim" }
}

Configuration

require('jobber').setup{
    layouts = {
        ["Layout 1"] = { "cmd 1...", "cmd 2..." },
        ["Layout 2"] = { "cmd 1...", "cmd 2...", "cmd 3..." },
    }
}

You can define as many commands as you like, and call each group whatever you like. All commands are executed with the default shell from the current working directory.

Usage

We register two commands:

  • Jobber: opens a layout picker and once a selection is made, launches that layout in a new window
  • JobberKill: broken command which should close all the terminals, but currently does not

Todo

  • Improve the JobberKill command (currently incorrect buffer numbers are stored by the terminal wrapper)
  • Introduce some kind of loading state so nobody thinks nvim is hanging
  • Create all the terminals before passing command input
    • All terminals are created basically using :term cmd which doesn't work for certain very io heavy commands (looking at you yes)
    • Creating all the pty's and then sending the commands to them would prevent this from being an issue.

jobber.nvim's People

Contributors

mr55p-dev avatar

Stargazers

 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.