mviereck / x11docker

Run GUI applications and desktops in docker and podman containers. Focus on security.
MIT License
5.62k stars 378 forks source link

Feature request: adding tab completion to x11docker command line option. #292

Closed hongyi-zhao closed 3 years ago

hongyi-zhao commented 3 years ago

Hi,

I noticed that there are so many options supported by x11docker, but currently it doesn't support command line option auto-completion by <tab> key.

Could you please kindly add this feature?

Regards, HY

mviereck commented 3 years ago

I once had a look how to provide this feature. It looked like a difficult task and I decided not to do it. Maybe I reconsider it.

What already works: You don't need to type the full option. It only needs enough chars to be unique. For example, --nx will be parsed as --nxagent, --cap as --cap-default. This is a feature of getopt that x11docker uses for option parsing.

mviereck commented 3 years ago

Another possibility is to use x11docker-gui. It allows to choose desired options with some mouse clicks and to copy the generated command to clipboard.

hongyi-zhao commented 3 years ago

From a personal point of view, I always think that the CLI based method is more efficient than the GUI one. You can see this in the working manners of Emacs and Vim.

mviereck commented 3 years ago

Maybe I'll add tab completion one day, but not yet. Closing for now.