When attempting to open an item in browser from the markdown view after filtering, nom panics with the following message:
interface conversion: list.Item is nil, not commands.TUIItem
Steps to reproduce:
Filter items
Select an item to enter markdown view
Use "o" to open in browser
Note: Opening an item in the browser works fine from a filtered list view, it's only when you enter markdown mode that it panics
Sytem:
MacOS 14
zsh
tmux
alacritty
I had a quick look into this and it seems like its this line thats causing the issue: internal/commands/viewport.go#L31
which isn't expecting a nil response from m.list.SelectedItem()
Bubble tea SelectedItem - list.go#L440 returns nil iflen(m.VisibleItems()) == 0, but after filtering and entering the markdown mode m.VisibleItems() returns an empty list
When attempting to open an item in browser from the markdown view after filtering, nom panics with the following message:
Steps to reproduce:
Note: Opening an item in the browser works fine from a filtered list view, it's only when you enter markdown mode that it panics
Sytem: MacOS 14 zsh tmux alacritty
I had a quick look into this and it seems like its this line thats causing the issue: internal/commands/viewport.go#L31 which isn't expecting a nil response from
m.list.SelectedItem()
Bubble tea SelectedItem - list.go#L440 returns nil if
len(m.VisibleItems()) == 0
, but after filtering and entering the markdown modem.VisibleItems()
returns an empty list