summaryrefslogtreecommitdiff
path: root/Userland/Applications/FileManager
AgeCommit message (Collapse)Author
2021-06-25FileManager: Add "Open in New Window" context menu actionSam Atkins
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-13Utilities: Change `unzip -o` option to `-d`Jelle Raaijmakers
Other `unzip` implementations universally use `-d` to indicate the output directory, so let's follow this convention.
2021-06-09FileManager: Save maximized window state on exitMarcus Nilsson
When exiting FileManager in maximized state, save it and start in maximized state on next launch.
2021-06-06AK+Everywhere: Disallow constructing Functions from incompatible typesAli Mohammad Pur
Previously, AK::Function would accept _any_ callable type, and try to call it when called, first with the given set of arguments, then with zero arguments, and if all of those failed, it would simply not call the function and **return a value-constructed Out type**. This lead to many, many, many hard to debug situations when someone forgot a `const` in their lambda argument types, and many cases of people taking zero arguments in their lambdas to ignore them. This commit reworks the Function interface to not include any such surprising behaviour, if your function instance is not callable with the declared argument set of the Function, it can simply not be assigned to that Function instance, end of story.
2021-05-26LibGUI/AbstractView: Remove `on_selection`Jelle Raaijmakers
Since the introduction of multi-select, we have had both `on_selection` and `on_selection_change`, the latter of which was only invoked when a change in selection came in through the model. This removes `AbstractView::on_selection` and replaces it usage with the more explicit `on_selection_change` everywhere.
2021-05-21Applications: Use titlecase and distinct underlined characters in menusMax Wipfli
This changes (context) menus across the system to conform to titlecase capitalization and to not underline the same character twice (for accessing actions with Alt).
2021-05-21FileManager: Change shortcut of Display Settings desktop optionLinus Groh
'D' is already used by 'New Directory', let's use 'S'. Fixes #7350.
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-13FileManager: Set minimum folder pane widthJelle Raaijmakers
2021-05-12FileManager: Reorganize main toolbar a little bitAndreas Kling
Re-group things so they match the menus better.
2021-05-12FileManager: Reorganize menus a little bitAndreas Kling
Move the common editing actions (cut/copy/paste/select-all) into a new "Edit" menu. And move the "Open Terminal Here" action to the "Go" menu.
2021-05-12LibCore+Everywhere: Move OpenMode out of IODeviceAli Mohammad Pur
...and make it an enum class so people don't omit "OpenMode".
2021-05-01Everywhere: Rename app_menu to file_menu or game_menuAndreas Kling
2021-04-29Everywhere: "indexes" => "indices"Andreas Kling
I've wasted a silly amount of time in the past fretting over which of these words to use. Let's just choose one and use it everywhere. :^)
2021-04-29Everywhere: "file name" => "filename"Andreas Kling
2021-04-25FileManager: Unzip from context MenuTheGeopard
This adds a new context menu entry allowing you to extract ZIP archives by invoking /bin/unzip
2021-04-23AK: Rename adopt() to adopt_ref()Andreas Kling
This makes it more symmetrical with adopt_own() (which is used to create a NonnullOwnPtr from the result of a naked new.)
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-20FileManager+FileOperation: Report Errors when doing an file operationTobias Christiansen
Report back errors from the FileOperation to the FileManager and display them in the MessageBox
2021-04-20FileManager: Don't crash on error in FileOperationTobias Christiansen
did_error() caused the program to crash since the DialogBox tried to run its own Notifier with the same - now invalid because closed - fd. In addition to setting the member that is the Notifier to nullptr we also tell the Notifier that it is not enabled anymore.
2021-04-18FileManager: Show action status tips in the status bar :^)Andreas Kling
2021-04-18FileManager: Pluralize empty selection statusbar message properlyLinus Groh
"item(s)" is silly, we can be more specific. :^)
2021-04-17FileManager: Estimate transfer timeLeandro Pereira
Use the total bytes transferred count to estimate the time left for the copy operation to finish. With the estimate label, the two progress bars were deemed superfluous, so the only remaining progress bar is the overall copy progress, that is updated more frequently. (The same progress is also shown in the task bar, so you can minimize the window and still be informed of the progress.)
2021-04-17FileManager: Show file copying animationLeandro Pereira
Bring some mid-90s charm and show a file flying animation while copying files. Icons for both source and destination directories are currently the default icons, but in the future they could be the respective icons for the destination directory.
2021-04-17FileManager: Make DirectoryView API's take String instead of StringViewAndreas Kling
2021-04-13Everywhere: It's now "Foobar", not "FooBar", and not "foo bar"Andreas Kling
I hereby declare these to be full nouns that we don't split, neither by space, nor by underscore: - Breadcrumbbar - Coolbar - Menubar - Progressbar - Scrollbar - Statusbar - Taskbar - Toolbar This patch makes everything consistent by replacing every other variant of these with the proper one. :^)
2021-04-13FileManager+FileOperation: Show byte progress of current fileAndreas Kling
What I meant for the GUI progress bars to show: - Bytes copied of the current file - Files copied of the total set What it actually showed: - Bytes copied of the total bytes - Files copied of the total set This patch fixes it by showing byte progress of the current file instead of byte progress of total bytes.
2021-04-13FileManager: Use a Core::File for the FileOperation pipesAndreas Kling
Instead of popen()/pclose(), we now open the pipes manually and wrap them in a friendly Core::File object.
2021-04-13FileManager: Use FileOperation to perform drag&drop copy out-of-processAndreas Kling
And display the progress of the copy operation in a separate window. :^) Note that this patch only updates the drag&drop code path to use the new mechanism. We still have to go through FileManager and make use of this everywhere. We also need to support additional operations, like Move, Delete, etc. Still, this is quite cool! :^)
2021-04-11LibC: Move S_* defines into <fcntl.h>Gunnar Beutner
According to the Single UNIX Specification, Version 2 that's where those macros should be defined. This fixes the libiconv port. This also fixes some (but not all) build errors for the diffutils and nano ports.
2021-04-09FileManager: Add Alt shortcuts to menu actionsAndreas Kling
2021-04-06FileManager: Set the default menu item in desktop context menusAndreas Kling
This makes the "Run TextEditor" action show up in bold text as expected when opening the context menu for TextEditor on the desktop. :^)
2021-04-05FileManager: Add Alt shortcuts for top-level menusAndreas Kling
2021-04-05LibGUI: Do AbstractView::set_column_hidden() => set_column_visible()Andreas Kling
This API felt backwards, so let's change it.
2021-04-04LibGUI: Add GUI::CommonActions::make_properties_action()Andreas Kling
Many apps want a "Properties" action with the same icon and shortcut.
2021-03-26LibGUI: Show human readable size in filemanagerFederico Guerinoni
The size is visible only in TableView mode of the filemanager.
2021-03-25Userland: Turn all application menus into window menus :^)Andreas Kling
2021-03-25PropertiesWindow: Show the file size in a human readable formatDavid Isaksson
2021-03-11FileManager: Accept TreeView drop eventVyacheslav Pukhanov
2021-03-07FileManager: Disable view change actions when directory is unreadableLinus Groh
Closes #3556.
2021-03-07FileManager: Use ArgsParser, handle more optionsspeles
This adds 2 more flags, that help with the "select on start" invocation. -s - makes us open the parent directory of the entry, and select it. -r - makes FileManager to skip real path resolution for cases when we want to select the symlink in parent directory. Also, if the file path is passed as argument, not it will open parent with the file selected.
2021-03-07Applications: Open folder with pre-selected file where appropriate :^)speles
2021-03-03FileManager: Add launch handler actions to desktop context menuZac
Extracted a method from the code in the File Manager application which added actions for activating launch handlers found for the selected file from the context menu. Applied this method to desktop files and shortcuts. Note: made some launch handler related methods in the DirectoryView static or const which allows passing const DirectoryView& to certain methods.
2021-03-01FileManager: Focus on file when opening file's location from Propertiesspeles
2021-03-01FileManager+LaunchServer: Add launching FileManager with focus on filespeles
2021-02-26Everywhere: Remove a bunch of redundant 'AK::' namespace prefixesLinus Groh
This is basically just for consistency, it's quite strange to see multiple AK container types next to each other, some with and some without the namespace prefix - we're 'using AK::Foo;' a lot and should leverage that. :^)
2021-02-25FileManager: change icon for Show in File ManagerMorc - Richard Gráčik
A small detail to match with the new File Manager icon in context menu. :^)
2021-02-25Base: Add new icons for fonts and File Managerthankyouverycool
2021-02-23Everywhere: Rename ASSERT => VERIFYAndreas Kling
(...and ASSERT_NOT_REACHED => VERIFY_NOT_REACHED) Since all of these checks are done in release builds as well, let's rename them to VERIFY to prevent confusion, as everyone is used to assertions being compiled out in release. We can introduce a new ASSERT macro that is specifically for debug checks, but I'm doing this wholesale conversion first since we've accumulated thousands of these already, and it's not immediately obvious which ones are suitable for ASSERT.