notesmd-cli icon indicating copy to clipboard operation
notesmd-cli copied to clipboard

feat: interpret new line

Open danielwerg opened this issue 2 years ago • 2 comments

Pull Request Title

Description

Interpret new line in --content

Motivation and Context

Closes #34

Checklist:

  • [ ] I have written unit tests for my changes.
  • [ ] I have updated the documentation accordingly.
  • [ ] All new and existing tests passed.

danielwerg avatar Jul 27 '24 15:07 danielwerg

Thanks for making a PR for this but I was hoping for it to be more robust. E.g. for it to support /n, /r and similar. It would be good to seperate this to a util function with unit tests.

Yakitrak avatar Jul 28 '24 15:07 Yakitrak

I don't need anything besides \n for my use case and I'm not sure how to interpret carriage return and other backslash escapes.

danielwerg avatar Jul 28 '24 20:07 danielwerg

Latest release handles this among other characters complete with unit tests:https://github.com/Yakitrak/obsidian-cli/releases/tag/v0.1.8

Thanks for raising this!

Yakitrak avatar Dec 27 '24 20:12 Yakitrak