Skip to content

fix(commands.create_note): allow create/select subdirectory before creating a new note#20

Merged
y3owk1n merged 2 commits intomainfrom
better-note-creation
Apr 10, 2025
Merged

fix(commands.create_note): allow create/select subdirectory before creating a new note#20
y3owk1n merged 2 commits intomainfrom
better-note-creation

Conversation

@y3owk1n
Copy link
Owner

@y3owk1n y3owk1n commented Apr 10, 2025

This change will add a select prompt before note creation to select a
subdirectory or create a new subdirectory for the note creation.
Previously we can already just type folder/something and it will
create the folder. Now the behaviour are still the same, but we added a
new select picker for easier selection of subdirectory as we go.

Note that if a subdirectory is selected and the input also has
subdirectory in it, it will get nested. For example:

  • Selected: linux-note
  • Input: linux-note/linux-is-amazing.md
  • Result: linux-note/linux-note/linux-is-amazing.md

It's recommended to just type in the name or filename instead of nested
path with filename

y3owk1n and others added 2 commits April 10, 2025 11:33
…eating a new note

This change will add a select prompt before note creation to select a
subdirectory or create a new subdirectory for the note creation.
Previously we can already just type `folder/something` and it will
create the folder. Now the behaviour are still the same, but we added a
new select picker for easier selection of subdirectory as we go.

Note that if a subdirectory is selected and the input also has
subdirectory in it, it will get nested. For example:

- Selected: `linux-note`
- Input: `linux-note/linux-is-amazing.md`
- Result: `linux-note/linux-note/linux-is-amazing.md`

It's recommended to just type in the name or filename instead of nested
path with filename
@y3owk1n y3owk1n merged commit 2ca4aaa into main Apr 10, 2025
3 checks passed
@y3owk1n y3owk1n deleted the better-note-creation branch April 10, 2025 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant