European-XFEL / h5glance

Explore HDF5 files in terminal & HTML views
BSD 3-Clause "New" or "Revised" License
65 stars 7 forks source link

Tune indentation level #35

Open tdegeus opened 1 year ago

tdegeus commented 1 year ago

Is there (could there be) an option to tune the indentation level?

takluyver commented 1 year ago

There isn't an option at present. There obviously could be, but is the current indentation causing issues for you? I like to keep options to a minimum where practical because more options -> more complexity -> more bugs.

tdegeus commented 1 year ago

That is why I want to discuss before starting a PR ;). But well, a bit yes. I have many datasets with several levels of hierarchy and I find it hard to get an overview. What could play a role is that my eyes are very much trained to an indentation level of 4 whereas h5glance uses only two of which one is used by a character.

But it is true that this is personal, and I can see they point of simplicity.

takluyver commented 1 year ago

We're also using it with several levels (at least 5, up to maybe 7 or 8). If you've just started using it, I might suggest: carry on for a week or two, see if you get used to it, or if other features like the tab completions help - if you use bash or zsh and you haven't already installed the tab completion support, try it: it's one of my favourite features. :grinning:

If it still doesn't feel right after that, fiddle with the indentation locally and see if that helps. :slightly_smiling_face: