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

Can't add new columns with default config #180

Closed
lilyball opened this issue Sep 3, 2021 · 2 comments
Closed

Can't add new columns with default config #180

lilyball opened this issue Sep 3, 2021 · 2 comments

Comments

@lilyball
Copy link

lilyball commented Sep 3, 2021

With the default config, there doesn't appear to be a way to add any new columns from the command-line. In particular, the only way to add columns from the command-line is with the --insert flag, which requires a defined Slot to use.

Two issues:

  1. The default config has no Slots. It really should have at least one.
  2. The --insert flag does not print any warning if there is no Slot. This means that, with default config, running e.g. procs -i Pgid just displays the normal procs output without informing me as to why it didn't work.

I'm also concerned that even if the default config adds a Slot column, I'll run into a case where I want to add more columns than there are Slots in the default config. This could be handled by allowing a single Slot to be replaced by multiple inserted columns (or by having a "Slots" that is used for any inserted column where there is no "Slot" available).

@alexdelorenzo
Copy link

I ran into both of these issues when I first used procs, as well.

dalance added a commit that referenced this issue Oct 19, 2021
@dalance
Copy link
Owner

dalance commented Oct 19, 2021

Thank you for your suggestion.
I added MultiSlot column, and added it to the default config.
Now many --insert can be used by default.

image

@dalance dalance closed this as completed Nov 26, 2021
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