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.
https://tangled.org/jonmsterling.com/ocaml-forester/commit/488bbbc7855bd0af64929395deafb73b1de0e640
I added an
edit_commandoption. 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.