Thanks for patience. Now you explained, it seems pretty obvious. Indeed, I would prefer the command palette width to be resizable. Now the width is more complex then, it would be two types of widths:
- When the command palette contents are commands, .i.e., a list of commands. This is just usual as when showing a quick panel with a list of options for the user to choose.
- When the command palette is accepting user input, as when the
Arithmetic command is selected. On this case, the
Arithmetic command seems to be opening a html phantom attached to the command palette bottom.
I would favor the command palette to be dynamically sizable when switching between the width types 1 and 2, i.e.:
- When I open the command palette for the first time, its size is computed as on build 3153.
- When a command is accepting input from the command palette with a embed phantom, its size can be set higher as 85%.
This would define the first part of the dynamically width. However there is a second part which can be though of, which is when you are inside the step 2 (accepting input with a phantom). On this case the command palette width could be just set to a default/standard width as of 85%, or it can follow the increment width adjustment:
- When opening the command palette for the first time, set WIDTH accordingly to the list items.
- When an input phantom is open, the command palette width is kept WIDTH
- But if the input phantom requires a WIDTH bigger than the original WIDTH, its width is expanded to WIDTH2
- If the input phantom does not requires such increased width, its width is not shrinked and is kept to WIDTH2
- If the input phantom requires more than WIDTH2, then its with is increase to WIDTH3.
- ... this would follow until the input phantom mode exists
Now when the command is not requiring more inputs the the command palette is back displaying the commands list, its width would be set back to WIDTH.
This solution seems to would also helps with my problem. To be more clear, I would like them on the following order:
- First I would like most to the dynamic width to be implemented as described at the beginning of the post
- Second, something implemented like described at the beginning of the post would be also nice.
- Third, a maximum width as proposed by @dubeg would also seem to help.
- Forth, write my own command palette parsing all
.sublime-command files, and sadly losing this nice new feature of input phantom. Or perhaps this is also implemented for quick panels, but without this width constraint of 85% width?