nom icon indicating copy to clipboard operation
nom copied to clipboard

`--refresh` flag

Open Axlefublr opened this issue 1 year ago • 6 comments

I searched for "refresh" in both open and closed issues and PRs, couldn't find anything related to my suggestion.

It would be very convenient to have some way to refresh nom without having to manually press the r button in the tui.

Something like a --refresh flag, that would open nom, wait for it to refresh, and then close it, would be exactly what I'm looking for! That way I could put that into my daily systemd timer, so I don't ever have to remember to refresh manually.

Of course, something like a config option that autorefreshes on a period for you, rather than a flag would be cooler, but it's also far more effort, that you may not want to go for.

Axlefublr avatar Dec 08 '24 14:12 Axlefublr

Thanks for this @Axlefublr. I think this would be a good addition as both a flag and a config option. The flag for running a one of nom refresh command and the config with an interval for the TUI.

guyfedwards avatar Dec 10 '24 16:12 guyfedwards

:D having both would be even better, yeah!

Axlefublr avatar Dec 10 '24 16:12 Axlefublr

@Axlefublr nom refresh is now a command in v2.6.2 thanks to @coolsloth55's contribution

I will leave this open as there is still background refresh in the TUI to be added

guyfedwards avatar Dec 16 '24 13:12 guyfedwards

yipeeee!

Axlefublr avatar Dec 16 '24 13:12 Axlefublr

I'd like to add one small addition to this request. When r is pressed, the "refreshed" banner should only show for a few seconds. Currently it shows forever, so basically nom just always says "refreshed" once you've pressed r once, which isn't very helpful.

maxolasersquad avatar Apr 15 '25 21:04 maxolasersquad

There's two approaches adding more background activity to clear that "refresh" at or finding a dedicated spot on UI mentioned by @guyfedwards in https://github.com/guyfedwards/nom/pull/102#discussion_r1885943289.

coolsloth55 avatar Apr 19 '25 16:04 coolsloth55

with the refresh subcommand, this has actually been finished for a while lol 🤔

Axlefublr avatar Jul 20 '25 11:07 Axlefublr