mprocs icon indicating copy to clipboard operation
mprocs copied to clipboard

[Feature] Separate process "id" and display-name in config

Open legobeat opened this issue 1 year ago • 4 comments

The process name is used both as key in the config yaml and as display-name in sidebar.

Would make scripting a lot smoother if this could be separated by introducing a new property for display name.

procs:
  foo1:
    label: 'foo [1]'
    shell: 'run-job foo'
  foo2:
    label: 'foo [2]'
    shell: 'run-job foo'
  # still displayed as "bar"
  bar:
    shell: 'run-job foo'

If neither backwards-compat or the overhead of overloaded config types are major concerns, it would further simplify things to make it a list rather than a dict:

procs:
  - label: 'foo [1]'
    shell: 'run-job foo'
  - label: 'foo [2]'
    shell: 'run-job foo'

(There are pros/cons to having the "unique ID" aspect of each job having an ID/name, still - not hard to imagine potential future functionality making use of it)

legobeat avatar Jun 04 '24 22:06 legobeat

This is definitely a needed feature. In fact I even went to check if I implemented the "title" field, because I thought about it in the past. Turns out it's not implemented yet.

pvolok avatar Jun 05 '24 14:06 pvolok

@pvolok what a wonderful project! I'll use it everywhere now.

Might I add to this ticket, how about we add both a title and a description? You can only say so much in a title, and especially if you have new devs, having an extra line of documentation never heard the onboarding process.

codingjoe avatar Jun 06 '25 12:06 codingjoe

Thank you @codingjoe. Where would you expect to see the description?

pvolok avatar Jun 06 '25 14:06 pvolok

Thank you @codingjoe. Where would you expect to see the description?

Good question. Probably above the terminal window. Otherwise the interface gets too crowded.

But I am no UX designer 🤷‍♂️

codingjoe avatar Jun 06 '25 14:06 codingjoe