icewm icon indicating copy to clipboard operation
icewm copied to clipboard

AddressBar completion?

Open fladd opened this issue 4 years ago • 5 comments

The documentation says that the AddressBar supports completion with either "Tab" or "Ctrl-I". This does not seem to work, or it is not clear how it should work.

For instance, I type "python my_script." and then hit "Tab", assuming that this will complete to "python my_script.py", but nothing happens.

How exactly is the completion supposed to work, and how does one set it up correctly?

fladd avatar Dec 04 '20 17:12 fladd

It will complete the first world by looking at the executable in $PATH. It will not complete the arguments, and especially not in a smart way like bash-completion.

Code7R avatar Dec 04 '20 17:12 Code7R

Thanks for the clarification.

It appears that the documentation is misworded then, because it states explicitly that the AddressBar supports "file completion" (and "my_script.py" in my example is a file of course).

Also, even completing executables still seems to work quite inconsistently here (using Antix 19.3): E.g. typing "py" and then hitting TAB will not do anything. "pyt" will complete to "python". Typing "fir" will expand to "fire" (which does not exist).

fladd avatar Dec 04 '20 17:12 fladd

It completes to a common prefix. I guess you have at least a couple of tools which names start with fire. The little drawback here compared to a common shell is that you don't get a visual or audible notification that the shown prefix is not complete.

Code7R avatar Dec 04 '20 18:12 Code7R

I see. Thanks for the explanation. In that case, let's consider this a feature request: Full shell-like completion

:-)

fladd avatar Dec 07 '20 12:12 fladd

I would recommend everyone to use dmenu or rofi.

DarkSamus669 avatar Dec 15 '21 19:12 DarkSamus669

This adds completion to the last argument. If there is more than one match, it expands to the common prefix. Let me know if this is enough.

gijsbers avatar May 15 '24 21:05 gijsbers