bujo icon indicating copy to clipboard operation
bujo copied to clipboard

Improve snippets (placeholders, names, commands)

Open wookiefriseur opened this issue 2 years ago • 0 comments

Great extension, very useful. Let's make it even better. 😃

Some Ideas

  1. would be cool if we could use advanced snippet features in timeblock* and timetrack*
  2. the snippet prefixes are a bit too long and not unique enough
  • right now you have to type a lot to get to a specific snippet, could be more concise
  • my length workaround right now is to just type short hand versions and hope it works.. like tbch for timeblockchunk
  1. there are too many snippets
  • for instance we could remove timeblockrow and timeblocknote and add those to timeblockchunk
  1. some snippets could be made available to BuJo comand palette and be added as a keybinding
  • timeblockchunk (for instance Shift + Alt + C
  1. separate command just for adding rows to current table (with keybind)
  • could add columns depending on table size or 3 columns by default

Example for snippets

https://user-images.githubusercontent.com/8905319/198732296-b7f26a0c-8ca5-45eb-9b55-5845b72e75e7.mp4

Snippet from the video:

"bujo timeblocktable": {
    "prefix": "bujoBlocktable",
    "body": [
      "|        Time | Block         |",
      "| ----------: | :------------ |",
      "|     (${1:00}:${2:00}) | (${3:Revision} #${4:1}) |",
      "|             |               |",
      "| ${5:00}:${6:00}-${7:00}:${8:00} | ${9:Chunk}         |",
      "|             | - ${10:Note}        |",
      "|             |               |"
    ]
  }

wookiefriseur avatar Oct 28 '22 21:10 wookiefriseur