You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
I'm using tv as fuzzy folder finder within ranger-cli. This works surprisingly well with the current features. But since running tv dirs --preview "..." requires a pipe from stdin, the nerd-font icons from eza aren't displayed correctly. I don't know which component exactly introduces this. eza displays nerd-fonts icons correctly, but when piping this to tv with this command, then I get this char in every instance instead of the icon: ␀
fd --type d | tv dirs --preview "eza -a --icons=always --color=always --color-scale --oneline {}"# same goes for this minimal command
fd --type d | tv dirs --preview "eza --icons=always {}"
Maybe it's because of the pipe?
tv nerd fonts are active btw and work fine when running tv without piping from stdin.
use_nerd_font_icons = true
television 0.9.2
build: 1.83.0 (2025-01-10)
Tested in kitty and ghostty, both with the same result.
Feature
Support for --preview without piping from STDIN
Support for nerd font glyphs from preview applications lika eza.
Examples
tv dirs --preview "eza -a --icons=always --color=always --color-scale=all --color-scale-mode=gradient --oneline {}"
Additional context
SIDE NOTE: This is where I use this function:
ranger-cli commands.py
classtv_dirs_select(Command):
defexecute(self):
importsubprocessfromranger.ext.get_executablesimportget_executablesif"tv"notinget_executables():
self.fm.notify("Could not find tv(television)", bad=True)
returntv=self.fm.execute_command(
'fd --type d | tv dirs --preview "eza -a --icons=always --color=always --color-scale --oneline {}"',
universal_newlines=True,
stdout=subprocess.PIPE,
)
stdout, _=tv.communicate()
iftv.returncode==0:
selected=os.path.abspath(stdout.strip())
ifos.path.isdir(selected):
self.fm.cd(selected)
else:
self.fm.select_file(selected)
BTW, thank you for television!
The text was updated successfully, but these errors were encountered:
Problem
I'm using
tv
as fuzzy folder finder withinranger-cli
. This works surprisingly well with the current features. But since runningtv dirs --preview "..."
requires a pipe from stdin, the nerd-font icons from eza aren't displayed correctly. I don't know which component exactly introduces this. eza displays nerd-fonts icons correctly, but when piping this to tv with this command, then I get this char in every instance instead of the icon:␀
Maybe it's because of the pipe?
tv nerd fonts are active btw and work fine when running tv without piping from stdin.
use_nerd_font_icons = true
television 0.9.2
build: 1.83.0 (2025-01-10)
Tested in kitty and ghostty, both with the same result.
Feature
--preview
without piping from STDINeza
.Examples
Additional context
SIDE NOTE: This is where I use this function:
ranger-cli commands.py
BTW, thank you for television!
The text was updated successfully, but these errors were encountered: