Commit graph

716 commits

Author SHA1 Message Date
Jason Rodney Hansen
489eb2a066 Add caching for thumbnails based and freedesktop.org spec 2025-07-07 08:59:06 -06:00
Ashley Wulber
e4ffec63a1 refactor: apply limit on the number of persisted sort names 2025-07-03 19:34:48 +00:00
Ashley Wulber
84b73b0bdc refactor: move sort names to state 2025-07-03 15:13:11 +00:00
Ashley Wulber
499ce1a7ec refactor: avoid task for save sort names when debouncing 2025-07-03 15:13:11 +00:00
Ashley Wulber
01bf55865c feat: persist sort options for each location 2025-07-03 15:13:11 +00:00
Ashley Wulber
6a2bd1faf1 fix: add eject button for context menus on mount point 2025-07-01 00:25:58 +00:00
ellieplayswow
aba90279e6
add ability to pass appid through to file dialogs (#1042)
* dialog: add new Dialog::create() method with new DialogSettings struct to allow passing app_id from portal; deprecating Dialog::new()

* dialog: remove deprecation, move to builder pattern, add path_opt and kind options to DialogSettings

* dialog: instances of -> DialogSettings to -> Self
2025-06-27 16:26:24 -06:00
Jeremy Soller
e3b7cfc8e6
Adjust shortcut text style 2025-06-27 11:14:09 -06:00
Jeremy Soller
cefa82f4e9 Drop dbus-config, update libcosmic, and use system_theme_update 2025-06-23 11:37:22 -06:00
Jeremy Soller
b7d3d16d28
Fix compilation without gfvs feature 2025-06-18 20:54:58 -06:00
ellieplayswow
1ad5ec0398
drastically speed up gvfs mount directory listings (#1003)
* feat(gvfs): use gio::enumerate_children to iterate gvfs dirs and split some logic to avoid native fs:: methods

* feat(gvfs): allow thumbnails for GvfsPath + create ItemMetadata::file_size method

* feat(gvfs): fix up details panel + cargo fmt

* fixing panic with really large directories

* cargo fmt
2025-06-18 20:39:42 -06:00
Gwen Lg
b0e89cd5e3
fix some typos in comment or var name (#1027)
indicated by `typos` tool : https://github.com/crate-ci/typos/
2025-06-18 16:40:55 -06:00
Joshua Megnauth
ec685bd185
Save/simplify show hidden items (#1026)
Closes: #1022, #605
See: #982
Original PR: #36

This commit reimplements saving the "show hidden" files setting. I
simplified the implementation by making the toggle global. My original
PR (#36) implemented per tab show hidden, but that complicates saving
configs which is why (I think?) why the saving the toggle was scrapped.
2025-06-18 16:35:39 -06:00
Ashley Wulber
36a5ce2002 fix: proper feature gate 2025-06-18 14:32:07 -04:00
Ashley Wulber
720caa5dba feat: menubar popups 2025-06-18 12:11:15 -04:00
Jeremy Soller
1a5a4501ee
Desktop will not show DnD indicator, fixes #981 2025-05-20 16:12:54 -06:00
Jeremy Soller
051001b9ea
Implement setting permissions, fixes #325 2025-05-16 09:39:53 -06:00
Jeremy Soller
2c8060f93b
Remove debug prints from gvfs mounter 2025-05-15 11:49:49 -06:00
Jeremy Soller
72c7374d4c
Ignore failures to set permissions when copying, fixes #909 2025-05-15 11:40:59 -06:00
Jeremy Soller
69618b1bac
Fix finished progress 2025-05-15 11:35:06 -06:00
Jeremy Soller
a34f727913
Fall back to permanently delete on remote shares, part of #909 2025-05-15 11:30:35 -06:00
Jeremy Soller
3b34ba8907
Add reload folder key binding, fixes #146 2025-05-15 10:55:11 -06:00
Jeremy Soller
d0fb166cf6
Use gio to read display names for gvfs mounts, fixes #174 2025-05-15 10:00:44 -06:00
Jeremy Soller
53143d0abc
Remove nb_items from permanently-delete-warning 2025-05-09 10:25:33 -06:00
Jeremy Soller
4bf72d9f6a
Handle bz2 mimetypes 2025-05-07 10:10:39 -06:00
Jeremy Soller
3d18d7f390
Update dependencies 2025-05-01 09:19:40 -06:00
ellieplayswow
16c8c0df30 bugfix(zoom): use global modifiers for checking if ctrl is used for zoom instead of mouse area events
example(copy): fixing copy example to use correct Method type
2025-04-30 13:57:33 -06:00
Jeremy Soller
037190babd
Remove unused icon sizes argument from preview 2025-04-30 08:27:55 -06:00
Jeremy Soller
6fa890e3f3
Attempt atomic renames when moving top-level files and folders, fixes #607 2025-04-29 19:12:33 -06:00
Jeremy Soller
dd5fa29e9a
Adjust permanently delete dialog 2025-04-29 18:49:19 -06:00
Jeremy Soller
4f7d13f391
Merge branch 'permanently-delete' of https://github.com/gwen-lg/cosmic-files 2025-04-29 18:39:11 -06:00
Jeremy Soller
5573e36400
Copy to external drives when drag and dropping, part of #828 2025-04-29 18:07:57 -06:00
Jeremy Soller
dd98622cfa Reduce features used on remote filesystems
This attempts to detect remote filesystems on Linux using the
/proc/self/mountinfo file and checking the filesystem against a
hardcoded list of remote filesystems. Remote filesystems will not
thumbnail, read file data to determine mime types, or calculate
directory sizes.
2025-04-29 14:51:11 -06:00
Gwen Lg
160ef5f414 feat: include permanent delete in menu_bar 2025-04-29 20:18:30 +02:00
Gwen Lg
95aba7c74e Add context menu management of permanently deleting files and folders
The action replace move-to-trash when shift modifier is active, like on
other desktop environement.
Use modifiers value stored in Tab struct as needed to forward to context_menu
creation.
Started from work of Tim Dengel <tim.dengel.debian@gmail.com>
2025-04-29 20:18:30 +02:00
Gwen Lg
e220268954 Add ModifiersChanged message on Tab and keep value
The message is forwarded from app/dialog Message, and used to
keep the value of the status of modifiers in Tab.
2025-04-29 20:18:30 +02:00
Gwen Lg
d8a198e836 clean: rename Modifiers message to ModifiersChanged
to be more explicit/accurate.
2025-04-29 20:18:30 +02:00
Tim Dengel
1a66d7b184 Support permanently deleting files and directories using Shift+Del
Add a confirmation dialog to limit risks of data lost.
2025-04-29 20:18:30 +02:00
Jeremy Soller
8ced8b0551
Show all applications that handle any mime types in open with dialog, fixes #568, fixes #226, fixes #721 2025-04-29 09:53:51 -06:00
Daniel
569247acfb
visualise cut items (#954) 2025-04-28 07:35:27 -06:00
19MisterX98
2d22b6d516
fix #878 (#951) 2025-04-26 18:12:31 -06:00
luishugo
9856db389b
feat: "Open in terminal" now respects the default terminal application (#948)
This uses the same method as cosmic/settings to determine the default terminal application. This is more of a quick fix for the moment, because it does not yet adhere to the rules of https://github.com/Vladimir-csp/xdg-terminal-exec
2025-04-26 15:39:21 -06:00
Joshua Megnauth
63176a1e2a
Fix macOS build (#944)
Closes #921
2025-04-22 08:13:43 -06:00
Jeremy Soller
90fc680666
Handle error from trash::os_limited::is_empty 2025-04-21 13:34:16 -06:00
Joshua Megnauth
bc1b68153b
perf: Only enumerate trash items when necessary (#604)
Closes: #310

Depends on Byron/trash-rs#120 which implements a function that only
checks if the trash is empty or not instead of parsing each item.
2025-04-21 13:33:03 -06:00
Jeremy Soller
4f8d22c120
Format 2025-04-21 13:32:29 -06:00
Jeremy Soller
7598130650
Fall back to unmount if eject is not supported, fixes #941 2025-04-21 13:21:02 -06:00
Ashley Wulber
eea916d783
feat: responsive menu bar (#938) 2025-04-15 18:04:07 -06:00
Joshua Megnauth
b6c033562b
Add tests for exec_to_command (#935) 2025-04-15 09:09:31 -06:00
Jason Hansen
5e21c7cf99
Use icu for date and time localization (#934)
* Use icu for date and time localization

* Handle military time config in dialog
2025-04-14 08:59:32 -06:00