[kcmutils] Add ellipsis to search labels in KPluginSelector
ClosedPublic

Authored by rooty on Jan 7 2019, 4:59 PM.

Details

Summary

This patch adds an ellipsis to the search labels in KPluginSelector (and the elements that call for it, e.g. KWin Scripts).

Diff Detail

Repository
R295 KCMUtils
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
rooty created this revision.Jan 7 2019, 4:59 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJan 7 2019, 4:59 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
rooty requested review of this revision.Jan 7 2019, 4:59 PM
rooty added a comment.Jan 7 2019, 5:04 PM

+1

hey i ... accidentally ran arc diff without arc feature? is that a problem?

shubham added a comment.EditedJan 7 2019, 5:08 PM

I don't think so, there is a task about it if you know.
T10258

rooty added a comment.Jan 7 2019, 5:09 PM

I don't think so, next time when you can push this type of change (ellipsis) directly, there is a task about it if you know.

Cool!

pino added a subscriber: pino.Jan 7 2019, 5:24 PM
pino added inline comments.
src/kpluginselector.cpp
261

why not "Search plugins..."?

rooty added inline comments.
src/kpluginselector.cpp
261

i think it's because it's self-evident (and shorter)

pino added inline comments.Jan 7 2019, 5:51 PM
src/kpluginselector.cpp
261

a) explicit is better than implicit
b) "shorter" makes sense only when thinking for English, not for other languages

rooty added inline comments.Jan 7 2019, 9:31 PM
src/kpluginselector.cpp
261

a) not always - there's very little nuance here, and there's nothing to be gained by adding the word plugins (except for reinforcing that the word is a verb and that it's transitive), that's why we don't use "Type to"... besides, if we did make it explicit, we'd have to use "Search applications, places, actions etc." in kicker, "Search clipboard contents" in clipboard etc.

b) "search" is a simpler and far less restrictive idea than "search plugins" in whatever language we're talking about or in, it's a single idea that doesn't call for a direct object and doubles as a noun (検索, Suche, Busca etc.)

ngraham accepted this revision.Jan 8 2019, 1:33 AM
ngraham added a subscriber: ngraham.

I think this is fine. The search field doesn't have to specify what it's going to be searching in if it's totally obvious, as it is here. This also makes it consistent with other similar instances of list-with-search-field-on-top, as in the Effects KCM.

This revision is now accepted and ready to land.Jan 8 2019, 1:33 AM
Closed by commit R295:24ba84914a84: [kcmutils] Add ellipsis to search labels in KPluginSelector (authored by Krešimir Čohar <kcohar@gmail.com>, committed by GB_2). · Explain WhyJan 11 2019, 4:54 PM
This revision was automatically updated to reflect the committed changes.