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

How to display parent and child nodes count next to nodes in current view #59

Open
montaropdf opened this issue Jun 18, 2021 · 4 comments

Comments

@montaropdf
Copy link

Hello,

In the various video presenting smsn, I have not found the functions to call or variables to set, in order to display the count of parents and children of a given node.

Can you please advise how to achieve such feat?

@joshsh
Copy link
Member

joshsh commented Jun 18, 2021

There is actually no setting for hiding the right margin (which displays the parent and child counts), so I am curious what it is about your Emacs client which is causing the margin not to be displayed. FYI, the code which adds the "meta" column starts on line 146 of smsn-view.el. Is there anything else which is different in your environment, e.g. limited colors, no line numbers, etc.?

@montaropdf
Copy link
Author

I will have look at the code.

With regard to the color scheme, I use the doom-nord-theme. My emacs setup is quite big, so I wouldn't be surprised if somethin interfere. with smsn-mode.

@JeffreyBenjaminBrown
Copy link
Member

If you had a way to run a separate sandboxed Emacs, you could check whether smsn + default config works. If so, then you could gradually* add in your real config to pin down where the conflict is.

*ideally using a bisection strategy, to reduce the time needed to O(log n)

@montaropdf
Copy link
Author

I have tried disabling my theme but it change nothing, I don't know the text property API of emacs, so I really don't know where to look at.

All I can do is providing a link to my configuration, in case you can easily spot the culprit.

My global dot files:
https://github.com/montaropdf/dotfiles

The 2 locations that are related to the emacs configuration on the host where I run the editor:
https://github.com/montaropdf/dotfiles/tree/master/dotfiles/plain/common/.config/emacs/core
https://github.com/montaropdf/dotfiles/tree/master/dotfiles/plain/work/.config/emacs/localhost

To add more context, my machine is a CentOS 8.

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

No branches or pull requests

3 participants