Location: accounts/full.beancount:29564
...
--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/36491544-a70d-4671-a79d-b3c711566e36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I used to have it send you to the source code as served from the web interface, more similar to what you suggest, e.g.:
I'm not particularly swayed either way, they both seem like good options.Regarding directing an external program to do this (e.g. an editor), I've done that before but it requires some non-trivial setup and there are many different ways to do this, I'd prefer it to be something you have to turn on with a command-line option, and perhaps configure the method from that option.
Hi Martin,So I have this working: the transaction's info page contains a link which upon clicking opens up my editor directly to the source line. This has hugely sped up my data entry and fixing. This is the one feature I've missed ever since I moved to command-line accounting: the ability to make fixes "on the spot."It's a minor change to the source code since as you pointed out, you had most of the code in there already. Client side configuration and a script is required, and since I use Windows quite a bit, I registered a new 'beancount:' URI handler on my Windows box as shown in [1], and this works flawlessly from any browser. Nathan Grigg pointed out a Linux solution earlier in this thread. Don't know about other platforms.
Would you be interested in merging in my patch for this, and associated documentation? If so, I'd be happy to get it into place. It would be nice to have the handler's string (I use 'beancount:') configurable, but I haven't yet figured out how to pass in the arguments from bean-web into render_entry_context(), but this isn't strictly needed.
--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/61294a6b-6a60-4bee-b8a5-e932e4286ec3%40googlegroups.com.
On Tue, May 12, 2015 at 8:01 PM, <redst...@gmail.com> wrote:Hi Martin,So I have this working: the transaction's info page contains a link which upon clicking opens up my editor directly to the source line. This has hugely sped up my data entry and fixing. This is the one feature I've missed ever since I moved to command-line accounting: the ability to make fixes "on the spot."It's a minor change to the source code since as you pointed out, you had most of the code in there already. Client side configuration and a script is required, and since I use Windows quite a bit, I registered a new 'beancount:' URI handler on my Windows box as shown in [1], and this works flawlessly from any browser. Nathan Grigg pointed out a Linux solution earlier in this thread. Don't know about other platforms.Great stuff. I love it when people just go ahead and build stuff that they need. This is great :-)Would you be interested in merging in my patch for this, and associated documentation? If so, I'd be happy to get it into place. It would be nice to have the handler's string (I use 'beancount:') configurable, but I haven't yet figured out how to pass in the arguments from bean-web into render_entry_context(), but this isn't strictly needed.Yes, only pending the copyright situation (I need to figure this out). The best for now would be if you want to clone my repo and share your changes with the list, send a pointer to it. I can have a look at what you need and see if I can integrate something that would work on all platforms.
Let me know.Thanks!
--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/3b536974-7fd6-4471-a901-a47b65968e37%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/ee9f9b5d-82aa-4e70-aac8-263ebdd2302e%40googlegroups.com.
Sounds like a great feature!One suggestion: The code generates URLs like "beancount:///Volumes/Ledger/example.ledger:lineno:123". Wouldn't it be cleaner to append the lineno as a GET-parameter like "beancount:///Volumes/Ledger/example.ledger?line=123" ?Another variant would be to specify it like so: "beancount://open?url=file:///Volumes/Ledger/example.ledger&line=123&column=45" in order to preserve the "file://" and specifying what should happen ("open") when clicking the link. (The second variant would also make it easier to create applications, for example for the Mac, that handle the "beancount://"-scheme.)
If I were to choose I would go with the following variant:
beancount://open?url=file:///Volumes/Ledger/example.ledger&line=123&column=45
I have put together a set of tools to make this work on a Mac (https://github.com/aumayr/beancount-web/commit/f1e954df9c4a2ad8c491a3b08f6e05b49f2f74fd). It's an AppleScript-App for registering the URL scheme and intercept it, then forward it to a Python script which in turn reads the editor-command from a conf-file and starts the specified editor. See https://github.com/aumayr/beancount-web/tree/url-scheme#beancount-urlscheme for how it could be used.
We could join forces and combine your Windows-version (the BAT-script you mentioned) and the Mac-version to make it work on both platforms before making a new PR!?
--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/190d6e50-ea3d-43d9-81db-80a90af54512%40googlegroups.com.