Skip to content

How to create a custom command to open a specific file within Nota? #196

Discussion options

You must be logged in to vote
  • Create a custom command (cmd + shift + p > New custom command)
  • Navigate to the custom command folder (it's in WORKSPACE/.nota/commands)
  • Rename the script from my-command.sh to favourites.sh
  • Open the script and edit as listed below
  • Save
  • Hit cmd + shift + p and type favourites
  • Access favourites note quickly
  • Alternatively, you can also set a keyboard shortcut

favourites.md

#!/bin/bash
# @parameters workspace

cd "$1" && open "folder/favourites.md"

If nota is not your default Markdown editor, install the CLI tool (cmd + shift + p > Install CLI) and modify the script slightly:

#!/bin/bash
# @parameters workspace

cd "$1" && nota "folder/favourites.md"

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@astoilkov
Comment options

@minthemiddle
Comment options

@astoilkov
Comment options

Answer selected by astoilkov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants