-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Tag list and Search fails with filenames using brackets: [
and ]
#272
Comments
Man did I just get a "programming rush". Looks like the problem was using Anyway, in the meantime I can at least use a work around now. I guess I won't be learning |
@realshovanshah Thanks for the information. This should be resolved in |
Thanks for the swift fix @xwmx. Adding notes with square brackets in the filename/title seems to be fixed now. But there seem to be more issues when doing things like removing the notes with Perhaps, it's best to do a thorough review of most features' compatibility with this character. One more thing:
|
Thanks for the additional information. The brackets are being interpreted as part of a regular expression pattern when passed to Technically the search query behavior is intended since it’s providing regular expression search with the underlying There is no logging. Error output from underlying tools is usually hidden in |
[
and ]
Can confirm that escaping works: Not sure why other operations like
As for extracting logs rather than piping them to |
I'm a regular user but here's what happened today.
Background
I created a new note as usual but this time, for some reason, the index didn't render properly in the console output. The index in this case was 1142.
Eg: Instead of
Added: [1142] new_note.md
, it just showedAdded: [] new_note.md
.I ran
nb
(without the colors too) to check if everything was only but again, here's what I see.Other operations like
edit
orshow
seems to be working fine. And the.index
file also has the note on the correct index.The Killer Problem
I dismissed it as some parsing or rendering issue and went about continuing what I was working on. But all of a sudden the tag listing and search commands such as
nb #a
,nb q <query> --tags a
or evennb q <query>
started misbehaving.In fact, the same tag list command that I had tried a couple of commands earlier returned way shorter results. And even searching for words (tags) that I've check exists, isn't showing up anymore. Not sure if there's a correlation but this started after index bug.
Note: I also now notice a delay in the time that it takes for the footer to render when running
nb
to show up. It's apparently stuck running thecat
command.Here are some things that I've tried:
I'll try a couple of more things, but I want to make sure it isn't something related to the broken rendering I mentioned above. Does nb generate any log file? I'd be helpful to see if there's a way to see if any underlying commands that failed or maybe threw some error when parsing text.
This is a really weird one. Unfortunately, I haven't really maneuvered files/text directly since I started using
nb
, so I'm a bit handicapped right now; but I guess now is the chance...The text was updated successfully, but these errors were encountered: