guanyilun / cuts.el

ACT cuts in emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cuts.el

A utility library for working with act cuts in emacs, for my laziness obviously.

What’s included

cuts-depot

Manage cuts depot

  • x: remove results from the selected tag(s)
  • enter: visit results directory

https://raw.githubusercontent.com/guanyilun/cuts.el/master/assets/screenshot.png

cuts-slurm

Manage slurm jobs

  • x: cancel jobs

https://raw.githubusercontent.com/guanyilun/cuts.el/master/assets/screenshot_2.png

cuts-run

manage cuts parameters

  • enter: visit the cutparam folder
  • o: visit cutparam file
  • O: visit cutParam file
  • [: visit run_v? directory
  • x: remove selected cut parameter version
  • P: promote the cut parameter to new version
  • S: submit slurm jobs
  • c: combine sub-job results
  • e: open directory in eshell
  • E: view errors in the run
  • f: visit post.ini file
  • F: run default postprocessing
  • L: show live slurm logs
  • 1: delete other windows

https://raw.githubusercontent.com/guanyilun/cuts.el/master/assets/screenshot_3.png

cuts-post

Prompts modules used in post-processing for easier selection.

  • c-c m: activate the prompt

https://raw.githubusercontent.com/guanyilun/cuts.el/master/assets/screenshot_4.png

This is based on helm so it follows the short-cuts helm, for example:

  • enter: insert modules at the end of module list
  • m-a: select all modules
  • c-s-spc: mark one module
  • f1: insert marked modules
  • f2: update marked modules
  • c-z: show actions available (insert/update)

Other shortcuts that work for all of them

  • h: help
  • m: mark selections
  • u: unmark selections
  • s: sort by fields
  • n: next entry
  • p: previous entry

How I import them

Suppose you placed this repo at ~/.emacs.d/site-lisp/cuts.el/, add these to your .emacs or .emacs.d/init.el

;; add the path of cuts plugin to load path
(add-to-list 'load-path "~/.emacs.d/site-lisp/cuts.el")

(require 'cuts-slurm)
(require 'cuts-depot)
(require 'cuts-run)
(require 'cuts-post)

(bind-key "<f7>" 'cuts-run-show-tags)
(bind-key "<f8>" 'cuts-slurm-show-jobs)
(bind-key "<f9>" 'cuts-depot-show-tags) 

;; bind cuts post-processing plugin to conf-mode                                                                                                                                                                                        
(require 'conf-mode)                                                                                                                                                                                                                    
(define-key conf-mode-map (kbd "C-c m") 'cuts-post-modules-helm) 

Dependencies

  • bui.el
  • dash.el
  • s.el
  • helm.el

About

ACT cuts in emacs


Languages

Language:Emacs Lisp 100.0%