In the old days this was hard-coded to VS Code, which is clearly not desirable :-)
I would like, in the preview mode only, to have an edit button whose behaviour is to simply run a user-specified shell command with the source file's location as an argument. This command could be specified in the forest's configuration.
Comments
did:plc:4gj3ihsdh6fn3aqq5bdnw5w3
https://tangled.org/jonmsterling.com/ocaml-forester/commit/488bbbc7855bd0af64929395deafb73b1de0e640
I added an edit_command option. The server will replace any instance of the string {tree} with the source path of the tree. Does this work for you?
I tried it out with `edit_command = "ghostty -e nvim {tree}". This works, but you probably want to be smarter and somehow hook into an existing editing session, since this will open a new terminal each time you click the button.
did:plc:jjiv56ot7d6sgethto3jr3r5
So, this basically works form my use-case at the moment. Let's close the ticket, and if users find problems with it, we can revisit.
Thanks so much!