Giter Site home page Giter Site logo

fabb's Introduction

Fabb

A babashka-tasks porcelain inside emacs.

Development

Doom looks for local packages in two dirs, including ~/.doom.d/{local-repo}.

A symlink to there, plus the following in package.el addition, then a doom sync worked for me.

# linux
ln -s ~/.doom.d/fabb ~/teknql/fabb

# osx
ln -s ~/teknql/fabb ~/.doom.d/fabb
;; doom packages.el
(package! fabb :recipe (:local-repo "fabb" :build (:not compile)))

Then you can configure fab like:

;; doom config.el
(map!
 (:leader :desc "Fabb Status" :nv "f" #'fabb-status))

(use-package! fabb
  :config
  (map!
   (:map fabb-mode-map
    :n "/" #'fabb-invoke-ivy
    :n "?" #'fabb-dispatch)))

Configuring from the doom config fixes some common bindings issues, given that many of the bindings get overwritten by doom/evil/etc, and it doesn’t seem worth adding hacks into fabb to work around that.

todo

[ ] document suggested workflows

[ ] handle bindings properly

[ ] document/handle dependencies

Things may only work due to implicit deps in my config right now

The linter led me to require these:

(require 's)
(require 'parseedn)
(require 'compile)
(require 'ivy)
(require 'evil)
(require 'cl-lib)

Not all of these are strictly necessary

[ ] don’t run ivy for non-ivy users

status

Fabb is quite useful in my daily work already! There may be some rough edges, but it’s quicker to run bb commands than popping open a shell in emacs or otherwise.

Currently I configure the bindings in my personal doom config like so:

(map!
 (:leader :desc "Fabb Status" :nv "f" #'fabb-status))

(map!
 (:after fabb
  (:map fabb-mode-map
   :n "i" #'fabb-invoke-ivy
   :n "?" #'fabb-dispatch
   :n "f" #'fabb-dispatch
   :n "q" #'quit-window)

  (:map fabb-status-mode-map
   :n "r" #'fabb-status-invoke-task-and-show-buffer
   :n "R" #'fabb-status-invoke-task-in-background
   :n "e" #'fabb-status-edit-and-invoke-task
   :n "RET" #'fabb-status-show-task-buffer
   :n "x" #'fabb-kill-fabb-buffers

   :n "j" #'fabb-status-goto-next-task
   :n "k" #'fabb-status-goto-previous-task)

  (:map fabb-task-mode-map
   :n "i" #'fabb-invoke-ivy
   :n "?" #'fabb-dispatch

   :n "e" #'fabb-task-edit-and-reinvoke-task
   :n "r" #'fabb-task-reinvoke-task-prompt
   :n "R" #'fabb-task-reinvoke-task-no-prompt))

 (:map compilation-mode-map
  :n "C-k" nil
  :n "C-j" nil)
 (:map compilation-minor-mode-map
  :n "C-k" nil
  :n "C-j" nil))

(use-package! fabb)

fabb's People

Contributors

russmatney avatar

Stargazers

Olav Fosse avatar Kiran Shila avatar Ryan Schmukler avatar Lau avatar  avatar  avatar Michiel Borkent avatar  avatar

Watchers

Ryan Schmukler avatar  avatar  avatar

fabb's Issues

Fabb does not inherit from keychain

I am trying to invoke a task that makes use of an already authenticated ssh-agent (to git push). It does not look like bb invoked from fabb is inheriting the correct environment variables for this to work.

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.