summaryrefslogtreecommitdiff
path: root/Userland/Applications/FileManager
AgeCommit message (Collapse)Author
2022-01-28Revert "FileManager: Display times in the user's local time zone"Timothy Flynn
This reverts commit 080b054695f03df2f731d9a519432e3f196f48e6.
2022-01-28FileManager: Display times in the user's local time zoneTimothy Flynn
2022-01-12Base+Userland: Add various iconselectrikmilk
Add new icons to menus, add existing icons that could be used in menus.
2022-01-09FileManager: Do not allow rename files that cannot be modifiedLeonardo Nicolas
Pressing the F2 key on files that the user doesn't have permission was opening the file name for editing. This patch fixes the issue disabling the file name editing when the user doesn't have permission to do it. To reproduce the issue: 1) Open the File Manager 2) Click on the /etc directory 3) Select any file 4) Press the F2 key 5) Update the file name
2022-01-05FileManager: Show Dotfiles when passing a Dotfile as an argumentLucas CHOLLET
Before this patch, FileManager was failing to open the directory and open `/` instead.
2022-01-05FileManager: Use String const& instead of StringLucas CHOLLET
Change ErrorOr<int> run_in_windowed_mode(String, String) to ErrorOr<int> run_in_windowed_mode(String const&, String const&)
2021-12-28FileManager: Add "Create Archive" actionJulian Offenhäuser
This option will appear when you select one or more files or directories. It will then ask the user to enter a name for the new archive (or use the current directories' name if left empty) and create it under that name in the currently opened directory. Note that only .zip files are currently supported.
2021-12-24LibGUI+Userland: Make SortingProxyModel::create() return ErrorOrSam Atkins
Unfortunately, most of the users are inside constructors, (and two others are inside callback lambdas) so the error can't propagate, but that can be improved later.
2021-12-05Applications: Cast unused smart-pointer TRY return values to voidSam Atkins
2021-11-28Everywhere: Use default execpromises argument for Core::System::pledgeBrian Gianforcaro
2021-11-24FileManager: Use TRY() a lot more in the main functions :^)Andreas Kling
2021-11-23LibCore+LibSystem: Move syscall wrappers from LibSystem to LibCoreAndreas Kling
With this change, System::foo() becomes Core::System::foo(). Since LibCore builds on other systems than SerenityOS, we now have to make sure that wrappers work with just a standard C library underneath.
2021-11-22Everywhere: Use Application::construct() with Main::Arguments directlyMustafa Quraish
Use the updated API everywhere we are currently manually passing in `arguments.argc` and `arguments.argv`.
2021-11-22Everywhere: Use ArgsParser::parse() with Main::Arguments directlyMustafa Quraish
Use the updated API everywhere we are currently manually passing in `arguments.argc` and `arguments.argv`.
2021-11-22FileManager: Port to LibMain :^)Andreas Kling
This simplifies a handful of calls to pledge() and sigaction().
2021-11-21LibGUI+Everywhere: Make sync requests to Clipboard server more obviousBen Wiederhake
2021-11-11Everywhere: Pass AK::StringView by valueAndreas Kling
2021-11-08LibCore: Use ErrorOr<T> for Core::File::copy_file()Andreas Kling
2021-11-08LibGfx: Use ErrorOr<T> for Bitmap::try_load_from_file()Andreas Kling
This was used in a lot of places, so this patch makes liberal use of ErrorOr<T>::release_value_but_fixme_should_propagate_errors().
2021-11-03LibGUI+FileManager: Clarify Widget margins nameFrHun
Even though they are called content_margins, they are actually only ever used to determine where a Widget is supposed to be grabbable. So all methods and members are renamed accordingly.
2021-10-10FileManager: Listen for changes to Desktop wallpaper in configMustafa Quraish
Since there's no global API for being able to just assign a callback function to config changes, I've made an inline struct in desktop mode with the sole purpose of checking to see if the Wallpaper entry has changed, and then updates GUI::Desktop. It's pretty neat seeing the wallpaper change as soon as you edit the config file :^)
2021-09-13FileOperation: Deduplicate destination file names on copyTetsui Ohkubo
When there is a file with the same name in the destination directory, FileManager overwrites that file without any warning. With this change, such a file will be automatically renamed to "emoji-2.txt", for example. Also, currently there is a check in FileManager that makes copy and paste of a file in the same directory no-op. This change removes that check, because it is no longer a problem.
2021-09-03Everywhere: Use my shiny new serenityos.org email :^)Sam Atkins
2021-09-02FileManager: Kindly ask the user if they want to delete a fileMusab Kılıç
2021-08-31FileManager: Tweak layout spacing in file properties windowAndreas Kling
There wasn't enough vertical spacing between the TabWidget and the three (Ok/Cancel/Apply) buttons at the bottom.
2021-08-31FileManager: Hide the Inode and Symlink Target columns in TableViewAndreas Kling
These are not generally interesting, so let's hide them by default. The user can re-enable them if they want.
2021-08-31LibGUI: Rename FileSystemModel's "Owner" column to "User"Andreas Kling
A file is owned by a User+Group, not an Owner+Group.
2021-08-31FileManager: Remove tree_view_directory_context_menuKarol Kosek
It isn't used anywhere and the tree view shows only directories (and that is covered by the tree_view_directory_context_menu).
2021-08-31FileManager: Add 'Open in Terminal' action for selected dirs on desktopKarol Kosek
This is to be more similar to the context menu from the windowed instance of File Manager.
2021-08-31FileManager: Add default 'Open' action in context menu for directoriesKarol Kosek
This makes the directory context menu more similar to the file context menu.
2021-08-31FileManager: Place mkdir and touch actions below openings in tree viewKarol Kosek
This way, the Properties action will always be everywhere on bottom.
2021-08-31FileManager: Put file launch actions firstKarol Kosek
The default action (shown in bold) indicates what would you get by double-clicking on file. Since it's a default option, I think it deserves to be on top (together with alternative launch options). :^) Also they're not task actions like "Extract .zip here" or "Add to bookmarks".
2021-08-26FileManager: Report errors from chdir(), if anyAndreas Kling
2021-08-26FileManager: Make DirectoryView listen for configuration changesAndreas Kling
DirectoryView now inherits from Config::Listener and will update its view mode immediately if changed from elsewhere. This is pretty neat. :^)
2021-08-26FileManager: Move "View as ViewType" actions into DirectoryViewAndreas Kling
Let DirectoryView manage these actions itself. This matches what we already do for a bunch of other actions, and prepares for the next patch which will add Config::Listener to the mix.
2021-08-26FileManager: Change the cwd when opening a directoryTheFightingCatfish
The `open()` function of DirectoryView should change the current working directory, so that the "Go to Location" menu item can process relative paths correctly. Update other functions in DirectoryView to use `open()` when opening a directory.
2021-08-26FileManager: Remove "on activation" debug spamTheFightingCatfish
2021-08-26FileManager: Change read_i32 call to read_boolAndy Jansson
The FileManager/Window/Maximized flag was incorrectly read from the ConfigServer using read_i32 instead of the intended read_bool function call. It is now being read with the correct type :^)
2021-08-26FileManager: Use Config::pledge_domains()Andreas Kling
2021-08-26FileManager: Use LibConfig instead of Core::ConfigFile :^)Andreas Kling
2021-08-22Everywhere: Rename get in ConfigFile::get_for_{lib,app,system} to opennetworkException
This patch brings the ConfigFile helpers for opening lib, app and system configs more inline with the regular ConfigFile::open functions.
2021-08-22Everywhere: Use Core::ConfigFile::AllowWriting::Yes to allow writingnetworkException
2021-08-18FileManager: Reorder main toolbar actions a little bitAndreas Kling
Put the "Open in terminal" action next to the other navigation actions. And separate the "New File" and "New Directory" actions from the actions that operate on existing items.
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-08-18Userland+LibGUI: Make Margins arguments match CSS orderingsin-ack
Previously the argument order for Margins was (left, top, right, bottom). To make it more familiar and closer to how CSS does it, the argument order is now (top, right, bottom, left).
2021-08-06Everywhere: Replace Model::update() with Model::invalidate()sin-ack
Most of the models were just calling did_update anyway, which is pointless since it can be unified to the base Model class. Instead, code calling update() will now call invalidate(), which functions identically and is more obvious in what it does. Additionally, a default implementation is provided, which removes the need to add empty implementations of update() for each model subclass. Co-Authored-By: Ali Mohammad Pur <ali.mpfard@gmail.com>
2021-08-03FileManager: Use the current directory as one of the initial locationsKarol Kosek
This change makes `cd /bin; FileManager` open the app in /bin.
2021-08-03FileManager: Set chdir to the current path when opening applicationsKarol Kosek
2021-08-01FileManager: Refresh DirectoryView after applying changesLuK1337
Fixes: #9136
2021-08-01FileManager: Enable/Disable mkdir and touch actions on path changeKarol Kosek
This change disables the icons in read-only directories.