Skip to content

saikyun/freja-checkpoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

freja-checkpoints

to try it:

cd ~/.config/freja
git clone https://github.com/saikyun/freja-checkpoints
freja init.janet

then in your init.janet put:

# might need to tweak imports according to your taste
(import freja/file-handling :as fh)
(use freja/default-hotkeys)
(import freja/state)

(import ./freja-checkpoints/journey)

(global-set-key [:control :shift :i]
                (fn [_] (journey/show-checkpoints)))

(defn save-file
  [props &opt note]
  (print "journey save")

  (default note "manual save")

  (def path (tracev (props :path)))

  (fh/save-file props)
  (journey/save-journey path note))

(varfn load-file
  [props path]

  (tracev path)
  (pp (keys props))

  (save-file (props :gb) (string "before opening " path))
  (fh/load-file props path))

(varfn state/quit-hook
  []
  (save-file (get-in state/editor-state [:left-state :editor :gb]) "before quitting"))

(global-set-key [:control :s] save-file)
(set-key file-open-binds [:load-file] load-file)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published