Skip to content

spiderbit/org-capture-ledger-shopping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Org-capture Template for Ledger

Org-Capture Template for shop items from paper bills with history and autocompletion in Ledger format.

Setup

 (add-to-list 'load-path "<< path-to-this-files >>")
 (load-library "ledger-shopping-capture")
 (setq org-capture-templates
	`(("r" "(R)eceipt" plain
	   (file+function "~/output.org"
			  (lambda () ""
			    (progn (org-babel-goto-named-src-block "balance")
				   (org-babel-goto-src-block-head)(forward-line))))
	   (function sbit/ledger-shopping-capture-dialog)
	   :jump-to-captured t
	   :empty-lines-after 1
	   :immediate-finish t)))

inside the output.org I have a ledger src block if you want the output into a ledger file replace the output with:

(file "path/to/ledger-file")

About

Org-capture Template for Ledger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published