Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R help displayed incorrectly #88

Open
ghost opened this issue Jul 21, 2023 · 3 comments
Open

R help displayed incorrectly #88

ghost opened this issue Jul 21, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 21, 2023

❯ PAGER=nvimpager R
>?file

image

❯ PAGER=moar R
>?file

image

@lucc
Copy link
Owner

lucc commented Jul 23, 2023

It looks like R calls its own pager which then calls $PAGER (or is that a NixOS thing / I am on NixOS). Can you confirm this? This kind of messes up our parent process detection because we only look at the parent process of nvimpager and not its parent process(es). Is there any way to detect the pager R uses?

@ghost
Copy link
Author

ghost commented Jul 23, 2023

It looks like R calls its own pager which then calls $PAGER (or is that a NixOS thing / I am on NixOS). Can you confirm this?

How do I check that out?

I have no idea how you did find that out. Except some gdb/strace or other black magic.

@lucc
Copy link
Owner

lucc commented Jul 23, 2023

I was looking at the pstree/htop while nvimpager was running from R.

PS: That is also what nvimpager does to detect its parent process. This works for man, git, python, perldoc and ruby.

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

No branches or pull requests

1 participant