Closed bresilla closed 5 years ago
Thank you for your trial and feedbacks. It's very helpful.
I know is probably nitpicking, but would be cooler and more useful that when you type notes with no arguments it shows notes ls -o just like pass does
I agree it's not so useful that notes
shows help message. But when user firstly installs notes
and run it at first, it does not show anything (since there is no note yet). It'd be confusing and showing help is better.
I think following behavior would be acceptable when running notes
:
notes ls -o
What do you think?
And when adding new note, would make more sense if instead notes new category filename to use notes new category/filename so the very nested add would look like
I think 2 arguments (<category> <file>
) is better since filename is mandatory. When user forgets file name and set only category as 1st argument, wrong file will be created. For example, when notes new cat/nested-cat
is run and file name is not set, current command can detect file name is not specified. But when it accepts cat/file
, it will create wrong file cat/nested-cat.md
.
I experimentally implemented this at branch https://github.com/rhysd/notes-cli/tree/no-arg
I think following behavior would be acceptable when running notes:
- When there is no note, it shows help
- When there is one or more notes, it shows notes ls -o
I experimentally implemented this at branch https://github.com/rhysd/notes-cli/tree/no-arg
I think following behavior would be acceptable when running notes:
- When there is no note, it shows help
- When there is one or more notes, it shows notes ls -o
Yes, this is even better actually. :+1:
I think 2 arguments
(<category> <file>)
is better since filename is mandatory. When user forgets file name and set only category as 1st argument, wrong file will be created. For example, whennotes new cat/nested-cat
is run and file name is not set, current command can detect file name is not specified. But when it acceptscat/file
, it will create wrong filecat/nested-cat.md
.
Okay, it makes sense why you left like this. In any case i assume that in the future tab-completion
would be added, maybe then notes new cat/nested-cat/file
can make sense as it will help with names.
Yeah.. Tab completion should be improved. Currently bash completion and zsh completion are provided but category cannot be completed. I need to investigate how to add the functionality (though I'm not familiar with bash completion)
This app is hard to use (on Windows), sorry.
@sergeevabc Thank you for trying this app. But I can get nothing from just saying 'hard' only. Please create another issue and describe details.
I know is probably nitpicking, but would be cooler and more useful that when you type
notes
with no arguments it showsnotes ls -o
just like pass does (maybe even showing the tree structure):And when adding new note, would make more sense if instead
notes new category filename
to usenotes new category/filename
so the very nested add would look like:for a:
(i am just starting to learn GO, so hopefully sooner than later i would be able to contribute myself to this amazing project)