glow icon indicating copy to clipboard operation
glow copied to clipboard

Warch option does not work

Open bq-wrongway opened this issue 7 months ago • 3 comments

Describe the bug i have to manually press r in glow to get it to refresh,it does not auto update view when file is saved

Setup Please complete the following information along with version numbers, if applicable.

  • OS macos
  • Shell zsh
  • Terminal Emulator iTerm
  • Terminal Multiplexer zellij
  • Locale [e.g. en_US.UTF-8, zh_CN.UTF-8, etc.] En-us

To Reproduce Steps to reproduce the behavior:Open zellij and helix,then in one pane edit file with helix,and in another keep glow open. Glow never updates view automatically

Source Code Please include source code if needed to reproduce the behavior.

Expected behavior I expect glow to auto update on file change(when file is saved at least)

Screenshots Add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

bq-wrongway avatar May 18 '25 19:05 bq-wrongway

Hi @bq-wrongway,

I could not reproduce this. I'm also on macOS, and also tried inside Zellij as you mentioned.

Can you give more information? Which version of Glow are you using, and how did you install it?

andreynering avatar May 20 '25 16:05 andreynering

Hi ! Thanks for a reply, well i use 2.10 on mac, and i also use it on linux, and i have same issue there. However i made some progress, when i use "normal" editor, (just plain system text editor), it works like a charm, but when i use helix editor or neovim, i cant get it to work. When i use modal editors to edit file, i must force reload with "r" key tap on glow. otherwise it does not work.

https://streamable.com/ehmeqe

Do you know what can be the issue ? maybe they somehow handle save differently compared to normal editor. But still :write-all in helix should force file write on all files in project.

On mac i installed it using brew, on linux i copied binary to my bin folder

bq-wrongway avatar May 20 '25 19:05 bq-wrongway

Hi, Same problem here with :

  • Ghostty and two panes
  • Helix
  • Glow 2.1.0
  • NuShell if that's somehow an issue
  • Installed using nix

Been trying to get why this wasn't working for a while actually, i thought it was a me problem

Could this be a fsnotify problem that cannot watch files if they're being edited through neovim/helix?

Ciflire avatar May 26 '25 07:05 Ciflire