summaryrefslogtreecommitdiff
path: root/Userland/Utilities/paste.cpp
AgeCommit message (Collapse)Author
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-07-12Everywhere: Use default StringView constructor over nullptrsin-ack
While null StringViews are just as bad, these prevent the removal of StringView(char const*) as that constructor accepts a nullptr. No functional changes.
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-07-12Everywhere: Explicitly specify the size in StringView constructorssin-ack
This commit moves the length calculations out to be directly on the StringView users. This is an important step towards the goal of removing StringView(char const*), as it moves the responsibility of calculating the size of the string to the user of the StringView (which will prevent naive uses causing OOB access).
2022-04-18Userland: Always construct Application with try_create()Sam Atkins
2022-04-11paste: Use Core::System::{exec,setenv}Sam Atkins
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2022-02-19paste: Port to LibMain and LibCoreZack Penn
2021-11-21LibGUI+Everywhere: Make sync requests to Clipboard server more obviousBen Wiederhake
2021-05-10Userland: Implement paste --watch modeSergey Bugaev
You can now watch the clipboard for changes and run a command each time the clipboard contents change like this: $ paste --watch some command here The command will be spawned each time the clipboard contents change. It can read the clipboard contents from its stdin, and CLIPBOARD_STATE environment variable will be set to "data" if there is data to be read, or to "nil"/"clear" if the clipboard has been cleared.
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-01-12Userland: Move command-line utilities to Userland/Utilities/Andreas Kling