Skip to content

interactive filtering results in Found 0 note #331

@khimaros

Description

@khimaros

i traced the issue down to fzf.parseSelection()

the call to stringsutil.SplitLines() returns an empty array, despite the output parameter containing many bytes.

2023/06/06 16:23:39 fzf len(output): 153396
2023/06/06 16:23:39 fzf lines: []
Found 0 note

reproduction

when i zk edit -i -m <name> it shows up as the top result

when i press enter to select the note, it says Found 0 note

the same outcome when using zk list -i

this file i'm attempting to open is 153,335 bytes large

notes

editing the note with zk edit -m "<name>" -n 1 works fine

editing the note by name zk edit <name> works fine

the problem appears to be restricted to fzf integration

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions