Patch: Timestamped sections in stock Notes app

Rating: 
5
Your rating: None Average: 5 (6 votes)

Add an option to the stock Notes app pulley menu for inserting timestamped sections to keep order.

Sources: https://github.com/ichthyosaurus/sailfish-public-patch-sources

Discussion: https://forum.sailfishos.org/t/patches-by-ichthyosaurus

Donations: https://liberapay.com/ichthyosaurus

Screenshots: 
Application versions: 
AttachmentSizeDate
File sfos-patch-notes-sections-1.0.0-2.noarch.rpm7.83 KB26/06/2019 - 14:09
File sfos-patch-notes-sections-1.0.1-1.noarch.rpm8.43 KB15/07/2019 - 17:24
File sfos-patch-notes-sections-1.0.2-1.noarch.rpm8.43 KB27/12/2019 - 15:08
File sfos-patch-notes-sections-1.0.3-1.noarch.rpm8.33 KB06/12/2020 - 20:06
File sfos-patch-notes-sections-1.0.4-1.noarch.rpm8.36 KB07/12/2020 - 21:48
File sfos-patch-notes-sections-1.1.0-1.noarch.rpm8.77 KB13/04/2023 - 13:45
Changelog: 

1.1.0:
- update compatibility info: the patch is compatible with all versions of SailfishOS up to 4.5.0.19
- you may have to install an earlier version of this patch on older system versions
- add donations link

1.0.4:
- add Polish translation by atlochowski

1.0.3:
- update compatibility info: the patch is compatible with all versions of SailfishOS up to 3.4.0.24

1.0.2:
- update compatibility info: the patch is compatible with all versions of SailfishOS 3

1.0.1:
- translations added: Chinese, French
- internally: code cleaned up

1.0.0:
- initial public release

Comments

Historyscholar's picture

Thanks :)

Historyscholar's picture

"zh-CN" "add timestamped section"="添加时间戳记" yyyy-MM-dd,ddd HH:mm

ichthyosaurus's picture

thanks; I uploaded a new version - please check if everything is correct!

Historyscholar's picture

Can I translate this patch ?

ichthyosaurus's picture

Yes and no...

If you can give me the following, I can add your language:

  • name of your locale (eg. "en_US" or "fr_FR")
  • translation of the string "Add timestamped section"
  • short date format string without time (like "ddd, yyyy-MM-dd", see the docs)
  • time format string (like ", HH:mm")
  • regex for the short format (like "/^[a-zA-Z]+\.?, \d+\. \d+\. \d+:\n/" for German)
  • regex for the long format (like " /^[a-zA-Z]+\.?, \d+\. \d+\. \d+, \d+:\d+ Uhr:\n/" for German)

It relies on detecting colon signs etc., though, and I don't know if that is also usable with all languages.

 

eson's picture

Nice thought, but can't make it work on Xperia X, SFOS 3.0.3.10 and Foil Notes

Thaodan's picture

It's for the stock app.

ichthyosaurus's picture

I clarified it in the description

eson's picture

Thanks! Is it possible to make it work also with Foil Notes, or should I address Foil Notes dev?

I'm not good enough developer to make it on my own.

ichthyosaurus's picture

I'd recommend you contact the author of Foil Notes. This way, he could (for example) add proper support for translations etc. which is nearly impossible via a patch.