Skip to content

pager fx is very slow to open in slumber #506

Description

@hoarse-boy

Did you search for existing issues already?
yes

Describe the bug
when opening response with pager fx it often get stuck or load for a very long time. more than 5 to 10 seconds.

also sometime, i press any key it will immediately open fx.

when running fx command outside slumber it open blazingly fast even for super big json. so i think it might be a bug on slumber. i use jless too and it works fine but because i cannot yank when using hyprland, i switched to fx and found this.

i have tried to open fx outside slumber in quick succession and it works fine.

To Reproduce

  1. open slumber (with fx as the pager for json).
  2. click 'r' to go to 'request / response'.
  3. click 'v' to open the pager.
  4. terminal gets stuck waiting for fx to open.
  5. if fx opens fine, try quit and open again in quick succession. in my case sometimes it start to stuck on the 3rd tries and up.

Expected behavior
it should open it as fast as using fx outside slumber.

Screenshots
If applicable, add screenshots to help explain your problem

got stuck inside nvim using snacks.nvim's terminal (similar to toggleterm). this still happen running slumber outside nvim.
Image

after several seconds fx opens
Image

Version (please complete the following information):

  • OS: arch
  • Terminal: ghostty and kitty
  • Slumber Version: slumber 3.1.0

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions