gnome-shell/js/misc
Lucas Werkmeister d31f805817 history: Trim input and ignore if empty
This ports the runDialog changes of [1] to the underlying history
component, where they can benefit looking glass as well: the history is
now responsible for trimming the input and deciding that it shouldn’t be
stored if empty. (Note that _setPrevItem and _setNextItem already
skipped updating the history if the entry was empty.)

Since both users, runDialog and lookingGlass, also need the trimmed
input for other reasons – runDialog to avoid issues when interpreting
the command as a file path (if it can’t be executed as a command),
lookingGlass to decide whether a command should be run at all – have
addItem return the trimmed input. (runDialog and lookingGlass are not
yet changed to take advantage of this – that will be done in separate
commits.)

[1]: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1442

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1653>
2021-02-13 08:58:20 +00:00
..
config.js.in
extensionUtils.js extensionUtils: Stop using Lang.copyProperties() 2020-11-16 18:04:23 +00:00
fileUtils.js
gnomeSession.js
history.js history: Trim input and ignore if empty 2021-02-13 08:58:20 +00:00
ibusManager.js
inputMethod.js
introspect.js cleanup: Remove empty leading/trailing lines in blocks 2020-11-16 18:04:23 +00:00
jsParse.js cleanup: Remove empty leading/trailing lines in blocks 2020-11-16 18:04:23 +00:00
keyboardManager.js
loginManager.js
meson.build
modemManager.js cleanup: Define GObject accessors in camelCase 2021-02-03 20:19:29 +01:00
objectManager.js
params.js
parentalControlsManager.js
permissionStore.js
smartcardManager.js cleanup: Remove empty leading/trailing lines in blocks 2020-11-16 18:04:23 +00:00
systemActions.js cleanup: Define GObject accessors in camelCase 2021-02-03 20:19:29 +01:00
util.js util: Add a GNOME version comparison function 2021-02-05 13:41:26 +00:00
weather.js weather: Pass providers after application-id and contact-info 2021-01-14 16:47:52 -03:00