https://bugs.kde.org/show_bug.cgi?id=407913

            Bug ID: 407913
           Summary: Krunner runs the autosuggested command by default
           Product: krunner
           Version: 5.15.5
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: k...@privat.broulik.de
          Reporter: raphael....@jakse.fr
  Target Milestone: ---

SUMMARY

Autocomplete should not be used if not explicitly validated, especially when
there is a risk of a delay. It occasionally makes the wrong program run.

STEPS TO REPRODUCE
1. Alt+F2
2. type 2+2
3. type enter

OBSERVED RESULT
See that a document called 2-something.pdf is open after a noticeable delay.

EXPECTED RESULT
4 is chosen. (And by the way, the result of the computation takes a
considerable time to show up the first time, but this is probably another bug).

And:

STEPS TO REPRODUCE
1. Alt+F2, then type firefox -P customprofile, then type enter
2. Alt+F2, then type firefox. Notice that " -P customprofile" is added and
selected (which is good)
3. type enter.

OBSERVED RESULT

"firefox -P customprofile" is run instead of firefox.

EXPECTED RESULT

firefox is run. firefox -P customprofile is run only if right arrow is typed,
to validate the autocompletion.
I'm actually alternating between firefox and firefox -P customprofile, so
actually, the current behavior of KRunner means that when I want to just run
firefox, firefox -P customprofile is suggested, and then when I want to run
firefox -P customprofile, it is not suggested until I type a space after
firefox.

I feel KRunner should be consistent with the behavior of zsh-autosuggestions or
fish autosuggestions. Including having ctrl+→ validate one word from
autocompletion would be nice. The autocompletion would be shown in grey until
validated.

See also http://jeremymikkola.com/posts/2019_03_19_rules_for_autocomplete.html
(and HN discussion if interested:
https://news.ycombinator.com/item?id=19438826).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSUSE
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.58.0
Qt Version: 5.0.7-1-default

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to