BoostNote-Legacy icon indicating copy to clipboard operation
BoostNote-Legacy copied to clipboard

Add 'open folder' and 'run terminal command' actions to Markdown

Open jasondavis opened this issue 8 years ago • 1 comments

I do a lot of ElectronJS dev and in Boostnote I often will have a note for a project with a

  • screenshot image of the app
  • directory path to the project files
  • a command to run in the terminal to build/launch the app

It would be amazing if we could add a way to parse a code in Mardown that will make the app:

  • open a directroy on the file system
  • open a terminal and run a command

Possibble Example Code

These are just ideas the actual Markdown syntax could be anything, these are just to demonstrate what the goal is.

Open project folder [open-folder]((/path/to/project/folder))

Run command Markdown code [[command]]((cd /path/to/project/folder/&npm start)) multiple commands separated with &

or

<command path="/path/to/project/folder/" command="npm start" >

Then in the Markdown output/HTML it would show path and commands to run with a button to click that would make Boostnote run the action when clicked on

jasondavis avatar Dec 25 '17 16:12 jasondavis

This would be useful. I found this topic googling for the same issue. I want to embed a PowerShell script which after clicking would be run in the terminal.

PawelWozniak avatar Sep 02 '21 11:09 PawelWozniak