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

Conversion from List to Note and vice versa #368

Closed
R0X4N-K opened this issue Feb 3, 2025 · 1 comment
Closed

Conversion from List to Note and vice versa #368

R0X4N-K opened this issue Feb 3, 2025 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@R0X4N-K
Copy link

R0X4N-K commented Feb 3, 2025

It would be useful to have a button that allows converting a note into a list and vice versa. This feature would enable seamless switching between these two formats while preserving all data, making it easier to adapt notes based on user needs.
(This transformation should occur without changing the current screen, and the title should remain the same)

The functionality would be divided into two cases: List to Note and Note to List.

Case 1: List to Note
When converting a list into a note, each item in the list could be copied and prefixed with a hyphen in the new note, which would replace the original list.

Case 2: Note to List
When converting a note into a list, different criteria could be applied to determine how the text is split. One possible approach is to divide the note's text based on line breaks or punctuation marks, then take each resulting element and add it to the list.

A possible strategy for this conversion could be to attempt splitting the text using different delimiters, starting with line breaks. If the resulting segments are too long, the next delimiter (e.g., punctuation marks or spaces) is used, continuing this process until the shortest segment length is achieved. Once the optimal split is found, all extracted elements are used to form the list.

Thank you in advance for your time and feedback!

@R0X4N-K R0X4N-K added the enhancement New feature or request label Feb 3, 2025
@andiandi13
Copy link
Contributor

Mentioned here #190

@PhilKes PhilKes added the duplicate This issue or pull request already exists label Feb 3, 2025
@PhilKes PhilKes closed this as completed Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants