Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert a gkeepapi.node.Note to gkeepapi.node.List #122

Open
bergercookie opened this issue Apr 16, 2022 · 1 comment · May be fixed by #165
Open

Convert a gkeepapi.node.Note to gkeepapi.node.List #122

bergercookie opened this issue Apr 16, 2022 · 1 comment · May be fixed by #165

Comments

@bergercookie
Copy link

bergercookie commented Apr 16, 2022

Hi there,

Is there a way, via gkeepapi to convert a Note to a List? As far as I understand, the only difference between the two is whether the checkboxes are toggled or not. Is there a way programmatically to do so or does the user need to always do this via hand in the Google Keep gui?

P.S. Thanks for this tool. I'm using it in taskwarrior-syncall to write a two-way synchronization tool against Taskwarrior

@kiwiz
Copy link
Owner

kiwiz commented Apr 17, 2022

Not at the moment. I took a quick look and it appears that the code to do this is client side.

To convert to a list:

  • Split content by newlines, create a new ListItem for each entry
  • Delete the original entry

To convert to a note:

  • Join the content of all lists with newlines
  • Delete the original listitems

If you decide to implement this, PRs are welcome :]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants