OpenBagTwo / gsb

A tool for managing incremental backups of your save states using Git!
https://openbagtwo.github.io/gsb/
GNU General Public License v3.0
0 stars 0 forks source link

Support multiline tag descriptions via a text editor #21

Open OpenBagTwo opened 1 year ago

OpenBagTwo commented 1 year ago

GIVEN Alex has gsb installed on her system and is using it to manage a game

WHEN she opens a terminal, navigates to the directory containing a gsb-managed save and runs the command:

$ gsb backup --tag

THEN her default* text editor will open up prompting her to provide a multiline message

SO that she can log all of the new and exciting things that happened between the last (tagged) backup and this one

Notes

*by "default" I mean:

  1. Prefer an editor set explicitly via --editor
  2. Then prefer any editor preferences set in the gsb config (if such a thing exists)
  3. Then prefer her preferred git editor (git config core.editor)
  4. Then prefer $EDITOR (or whatever the Windows equivalent is)
  5. Then fall back to, like, nano/pico?

Looks like click supports this out-of-the-box

OpenBagTwo commented 1 year ago

So interestingly this already works in bash without any fanciness:

gsb backup --tag "Hello
> this is a multi-line
>
> tag annotation"