summaryrefslogtreecommitdiff
path: root/Userland/Applications/Run
AgeCommit message (Collapse)Author
2022-08-02Run: Trigger on escape key only onceJelle Raaijmakers
When you press the escape key in the Browse dialog, the key down event closes the dialog while the key up event then closes the Run window. Prevent this by only listening to key down events.
2022-07-12Everywhere: Add sv suffix to strings relying on StringView(char const*)sin-ack
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
2022-06-30Run: Don't try to set a history selection if history is emptyAndreas Kling
This fixes an assertion on startup when there's no command history.
2022-06-10Run: Use the new DialogButtonFrHun
2022-06-10LibGUI: Add layout spacer support to GMLFrHun
This is a bit of a hack, but it is an easy way to finally get spacers into GML. This will translate well if spacers are later to become child objects of the continer widget.
2022-06-02Userland: Use default buttons instead of manually handling return pressKarol Kosek
Besides simplifying the code, this will also draw outline for these buttons as a cue for a user!
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2022-02-14Applications: Use default constructors/destructorsLenny Maiorani
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
2022-02-13Userland: Run gml-formatIdan Horowitz
This brings the existing GML files up to spec with the new requirements
2022-02-07Meta+Userland: Run the GML formatter on CI and pre-commitkleines Filmröllchen
Now that the GML formatter is both perserving comments and also mostly agrees to the existing GML style, it can be used to auto-format all the GML files in the system. This commit does not only contain the scripts for running the formatting on CI and the pre-commit hook, but also initially formats all the existing GML files so that the hook is successfull.
2021-11-28Everywhere: Use default execpromises argument for Core::System::pledgeBrian Gianforcaro
2021-11-26Run: Port to LibMain :^)Andreas Kling
2021-11-08LibCore: Use ErrorOr<T> for Core::File::open()Andreas Kling
2021-08-18Userland+LibGUI: Add shorthand versions of the Margins constructorsin-ack
This allows for typing [8] instead of [8, 8, 8, 8] to specify the same margin on all edges, for example. The constructors follow CSS' style of specifying margins. The added constructors are: - Margins(int all): Sets the same margin on all edges. - Margins(int vertical, int horizontal): Sets the first argument to top and bottom margins, and the second argument to left and right margins. - Margins(int top, int vertical, int bottom): Sets the first argument to the top margin, the second argument to the left and right margins, and the third argument to the bottom margin.
2021-07-29RunWindow: Center FilePicker window within the entire screenLuK1337
It doesn't make much sense since to center run window within the parent window since it's created in the bottom left corner of the screen.
2021-07-27Run: Improve UI consistencyFrHun
2021-06-17Everywhere: Add component declarationsGunnar Beutner
This adds component declarations so that users can select to not build certain parts of the OS.
2021-06-01AK: Remove URLParserMax Wipfli
This removes URLParser, because its two exposed functions, urlencode() and urldecode(), have been superseded by URL::percent_encode() and URL::percent_decode(). This is in preparation for the introduction of a new URL parser.
2021-05-13Userland: Tighten a *lot* of pledges! :^)Andreas Kling
Since applications using Core::EventLoop no longer need to create a socket in /tmp/rpc/, and also don't need to listen for incoming connections on this socket, we can remove a whole bunch of pledges!
2021-05-12LibCore+Everywhere: Move OpenMode out of IODeviceAli Mohammad Pur
...and make it an enum class so people don't omit "OpenMode".
2021-04-27Run: Remove useless serenity.h includeJean-Baptiste Boric
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-17Run: Put the window in the bottom left of the desktopAndreas Kling
This makes a lot more sense now that it's spawned by the start button.
2021-03-29Everywhere: Remove empty {} from GML objectsEdgar Araújo
2021-03-12Everywhere: Remove klog(), dbg() and purge all LogStream usage :^)Andreas Kling
Good-bye LogStream. Long live AK::Format!
2021-02-21Run: Prefill text field with last command on launchTheMorc
Fixes #5446
2021-02-20Run: Prevent printing [null] in case of empty history (#5433)Sameem Zahoor Taray
Pressing up-arrow or down-arrow with empty command history printed [null] in the text area. Fixes #5426
2021-02-17Run: Store and present recent Run command history in a ComboBox.Nick Vella
We now store the last 25 inputs ran in Run in a simple text file under .config (~/.config/RunHistory.txt)
2021-01-23Run: Pledge "thread"Andreas Kling
This is needed for the thumbnail generation thread used by FilePicker. Fixes #5015.
2021-01-22LibGUI: Resolve cyclic inclusionBen Wiederhake
Application.h includes Widget.h which includes Application.h. I'm not entirely sure what the semantics are in this case, but avoiding this seems to be the safer approach. In this case, Widget does not actually use Application, so let's just remove the unused include.
2021-01-20Run: Fix newline in info labelLinus Groh
This apparently was a workaround for escape sequences in GML at some point (see #4937), but it now literally inserts "\n" and no newline, as the backslash itself is escaped.
2021-01-16Everywhere: Drop "shared_buffer" in most GUI programs, pledge "recvfd"Andreas Kling
Now that WindowServer broadcasts the system theme using an anonymous file, we need clients to pledge "recvfd" so they can receive it. Some programs keep the "shared_buffer" pledge since it's still used for a handful of things.
2021-01-16Run: initial implementation of Run appNick Vella