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
cuts-slurm
Manage slurm jobs
- x: cancel jobs
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
cuts-post
Prompts modules used in post-processing for easier selection.
- c-c m: activate the prompt
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