Neat! I've recently started using VSCode more for TypeScript/TSX as even with lsp-mode it's a lot better than Emacs, but it's difficult to live in multiple editing environments (not to mention needing IntelliJ for JVM work), so I've considered trying to just entirely move off Emacs, and ledger-mode is one of the big things I'd lose. I've see https://github.com/mariosangiorgio/vscode-ledger but it's not maintained; it does look pretty straightforward to extend to add more autocompletion etc though. I am also worried about missing ledger-mode's reconcile mode, but it looks like your ledgerbil does something like that. (One addition I might make if I try it out: a version of the "mark" command that lets me type an amount and, if there's a unique unreconciled transaction with that amount, marks it. Would make running down a long credit card bill easier... just type the numbers as they come!)
--dave On Wed, Oct 23, 2019 at 11:16 AM Scott Carpenter <[email protected]> wrote: > I recently switched from Sublime Text to VSCode and created a plugin for > the textmate language grammar for journal files (.ledger and .ldg). I'm > still maintaining the sublime syntax file, too. All the things are here: > > https://github.com/scarpent/ledgerbil/tree/master/syntax > > The rules are targeted at standard account roots: expenses, assets, > liabilities, income, and equity. (Or one letter aliases of same, except for > equity.) > > I think it looks nice and colorful: > > [image: ledger-syntax-highlighting-0.png] > > In Sublime Text, I originally used scopes that had these colors with a > Monokai Dark theme, but there are settings included in repo for both ST3 > and vscode to match what is shown here and in the syntax readme. > > It handles tags, balance assertions, balance assignments, and virtual > postings. I don't use a lot of ledger features and make no promises on how > it does for more complicated journal files, but I'd be open to attempting > updates if given examples. > > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Ledger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ledger-cli/725d0f46-484c-49c4-acba-84c5815973bb%40googlegroups.com > <https://groups.google.com/d/msgid/ledger-cli/725d0f46-484c-49c4-acba-84c5815973bb%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- [email protected] | flickr.com/photos/glasser/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/CAN7QDoL-zJ2BQ0Qa7GVoMZoJ5UsXQbaANRg8m-uZ%3Du-8FvV18g%40mail.gmail.com.
