GithubHelp home page GithubHelp logo

favetelinguis / justl.el Goto Github PK

View Code? Open in Web Editor NEW

This project forked from psibi/justl.el

0.0 0.0 0.0 245 KB

Major mode for driving just files.

License: GNU General Public License v3.0

Emacs Lisp 97.56% Dockerfile 0.41% Just 2.03%

justl.el's Introduction

MELPA

Introduction

justl.el mode is a major mode for driving justfiles. As compared to the just-mode, this mode is built for listing and executing the recipes in the justfile via the transient keymaps. Also works with TRAMP.

https://user-images.githubusercontent.com/737477/132949123-87387b7e-8f7d-45de-ac32-8815d9c1dc5d.png

Installation

It’s available via melpa and can be installed through use-package:

(use-package justl
  :ensure t
  :custom
  (justl-executable "/home/sibi/bin/just"))

Optionally you can install it via quelpa too:

(use-package justl
  :quelpa (justl :fetcher github
                 :repo "psibi/justl.el")

  :custom
  (justl-executable "/home/sibi/bin/just")
  (justl-recipe-width 25))

For doom emacs, you can install as:

(use-package! justl
  :config
  (map! :n "e" 'justl-exec-recipe))

Usage

To list all the recipes present in your justfile, call

M-x justl

You don’t have to call it from the actual justfile. Calling it from the directory where the justfile is present should be enough.

Alternatively if you want to just execute a recipe quickly, call

M-x justl-exec-recipe-in-dir

To execute default recipe, call justl-exec-default-recipe

To execute multiple recipes in parallel, customize justl-per-recipe-buffer to create dedicated buffers named *just-RECIPE*. This is useful to manage long running process.

Shortcuts

On the just screen, place your cursor on a recipe:

h => help popup
? => help popup
g => refresh
e => execute recipe
E => execute recipe with eshell
w => execute recipe with arguments
W => open eshell without executing

Customize

  • Because the help popup is built with transient, you can set and save your choices the same way you would with any other transient dialog.
  • By default, justl searches the executable named just, you can change the justl-executable variable to set any explicit path.
  • You can also control the width of the RECIPE column in the justl buffer via justl-recipe width. By default it has a value of 20.

Future

  • Implement justfile variables related features.

Releases

See the Changelog.org for the list of changes.

justl.el's People

Contributors

blankspruce avatar dependabot[bot] avatar favetelinguis avatar johnhamelink avatar psibi avatar purcell avatar tristancacqueray avatar vmiheer avatar zonuexe 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.