Commit graph

1138 commits

Author SHA1 Message Date
Ashley Wulber
133dab261d chore: update libcosmic 2025-04-16 12:29:28 -04: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
therealmate
7f73ddf204
Update Hungarian translations (#937) 2025-04-14 14:45:03 -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
Luna Jernberg
3245f762a6
Update Swedish translation (#932)
* Update cosmic_files.ftl

Update Swedish translation

* Update cosmic_files.ftl (SV)

Update Swedish translation
2025-04-11 09:21:57 -06:00
David Carvalho
3194ea1ddb
i18n - Update portuguese translations (#929) 2025-04-10 18:20:04 -06:00
Joshua Megnauth
5033b9dfed
fix: Handle complex Exec keys in desktop entries (#930)
Closes: #922, #924, #925, #928

My original patch, #891, mishandled Exec keys. The ordering of arguments
matters for the keys, such as for Flatpak apps.
2025-04-10 18:19:07 -06:00
Jeremy Soller
d6f1efbf67
Only write what was read during copy, fixes #931 2025-04-10 18:14:24 -06:00
Jeremy Soller
32bda4b585
Patches to fix redox support 2025-04-10 09:06:59 -06:00
Michael Murphy
79aa8f887a
feat: use io_uring / IOCP when available for async file IO (#911)
Spawns a single thread for handling async file IO on the [compio runtime](https://github.com/compio-rs/compio).
It is a completion-based IO runtime that can dynamically select a polling mechanism at runtime. It defaults to
io_uring on Linux, IOCP on Windows, and the polling crate everywhere else. On Linux systems where io_uring is
unavailable or disabled, it will fall back to the polling crate.

This eliminates most of the threads that were needed previously. It significantly reduced the amount of memory
needed in the recursive Context to get a good transfer rate for each copy operation—from a 4 MB buffer to 128 KB.
Copies on a nvme drive are somewhat faster with the async IO changes, and use less CPU than before.

Although it uses a single thread for non-blocking tasks, it still manages to 100% max out my nvme drive's
activity for the whole duration of multiple long transfers. But it would be possible to enable compio's
dispatcher to spread operations across worker threads if necessary.

All but the extract and compress operations were updated to be async. I had to switch the `CondVar` in the
`Controller` to a `tokio::sync::Notify` to prevent the IO thread from being put to sleep when an operation is paused.
Fixed a deadlock in the `operation_copy` test function that was performing an operation without concurrently pulling
from the channel in the operation. Reduced the rate that `Message::None` is sent from a subscription to trigger a UI
redraw, and fixed it to not run when operations are paused.
2025-04-09 15:15:07 -06:00
Gabriele
7a657c646b
Refactor translation (#923) 2025-04-08 08:06:20 -06:00
Matei Pralea
084578b792
i18n(ro): Improve Romanian translation (#926)
* i18n(ro): Improve Romanian translation

* i18n(ro): Fix `extract-here`
2025-04-08 08:05:47 -06:00
Jeremy Soller
c7aab10e2e
Merge pull request #919 from Wasabi375/unmount
Fix move to home location on unmount
2025-04-05 16:02:52 -06:00
Jeremy Soller
38b98e84e7
empty commit to force rebuild 2025-04-03 15:45:11 -06:00
Burkhard Mittelbach
f4b92c73ed Fix move to home location on unmount
Previously this would only work if the root of the unmounted file-system
is open in a tab. This also checks for any sub-path.

fixes: #915
2025-04-02 16:03:49 +02:00
Jeremy Soller
995e149e13
Merge pull request #918 from feikedonia/master
i18n(nl) improve Dutch, and fix a spell mistake
2025-04-02 07:45:28 -06:00
Feike Donia
99e01e0245
i18n(nl) fix some Dutch spell mistakes 2025-04-02 11:29:16 +02:00
Jeremy Soller
070a570687
Merge pull request #913 from LinuxBoy-96/Fr-translation
Fr translation
2025-03-31 19:54:51 -06:00
LinuxBoy-96
89cd8cc59d
Update cosmic_files.ftl
more translations
2025-03-31 21:10:26 -04:00
LinuxBoy-96
41ddf9fd70
Update cosmic_files.ftl
Add more translations
2025-03-31 20:16:58 -04:00
LinuxBoy-96
092e226af8
Update cosmic_files.ftl
Add french translation
2025-03-31 19:46:11 -04:00
Jeremy Soller
3f03f81ccc
Merge pull request #891 from joshuamegnauth54/feat-multiple-uris-single-app
feat: Open multiple files with one/multiple apps
2025-03-31 13:08:58 -06:00
Jeremy Soller
5914d7370f
Merge pull request #912 from LinuxBoy-96/update-fr_traduction
Update fr traduction
2025-03-31 13:05:12 -06:00
LinuxBoy-96
6311248c34
Update cosmic_files.ftl
typo
2025-03-31 13:59:47 -04:00
LinuxBoy-96
ee7946068a
Add french translation 2025-03-31 13:57:03 -04:00
Jeremy Soller
35ad7d0e94
Merge pull request #906 from VandaLHJ/patch-13
Update cosmic_files.ftl PL Translation extract to folder
2025-03-31 09:19:20 -06:00
Jeremy Soller
5732a8d6fe
Remove unnecessary debug output 2025-03-31 09:17:39 -06:00
Jeremy Soller
f8ecc856b3
Move xdg-mime patch to dependencies, remove filetime patch 2025-03-31 09:07:58 -06:00
Jeremy Soller
28ec74d440
Use xz2 instead of liblzma, update dependencies 2025-03-31 09:05:32 -06:00
Jeremy Soller
c665cf3522
Update libcosmic 2025-03-31 08:52:18 -06:00
VandaLHJ
6c41adef12
Update cosmic_files.ftl PL Translation extract to folder
Added extract to folder
2025-03-27 13:49:34 +01:00
Josh Megnauth
42cad87825
feat: Open multiple files with one/multiple apps
Opening multiple selected paths should:
* Launch one app that supports all of the file paths e.g. an image
  viewer that allows cycling through the selected images
* Launch multiple instances of an app if the app doesn't handle multiple
  URLs, such as nsxiv
* Launch different apps for a heterogeneous mix of URLs while taking
  into account the two rules above. For example, launching a mix of
  paths of images, videos, and text should open the correct apps
2025-03-27 02:08:38 -04:00
Jeremy Soller
a89ffb0693
Merge pull request #904 from carvalhods/master
i18n (pt-BR) Update translation
2025-03-26 21:08:52 +00:00
David Carvalho
318e0f441b i18n (pt-BR) Update translation 2025-03-25 22:35:35 -03:00
Jeremy Soller
7c2151ba11
Merge pull request #898 from jasonrhansen/single-click-fix
Fix for right and middle click in single click mode
2025-03-24 20:55:33 +00:00
Jason Rodney Hansen
4b8bbdccf0 Fix for right and middle click in single click mode
There was an issue with the "Single click to open" setting where
right-clicking or middle-clicking on a folder would open it. This makes
it so only a left single click will open it.
2025-03-24 10:36:06 -06:00
Jeremy Soller
17971a5d70
Merge pull request #896 from jasonrhansen/extract-archives
Use Open Folder dialog for Extract To
2025-03-24 01:34:49 +00:00
Jason Rodney Hansen
dfa857b1e5 Set title and accept button label for extract dialog 2025-03-23 15:28:18 -06:00
Jeremy Soller
fe0090bc6c
Merge pull request #892 from VandaLHJ/patch-12
Update cosmic_files.ftl PL Translation Type-to-search Delete and stuff
2025-03-23 20:48:19 +00:00
Jason Rodney Hansen
162768af8f Fix toasts for Extract and Compress 2025-03-23 14:30:22 -06:00
Jason Rodney Hansen
5fd7be593a Use Open Folder dialog for Extract To 2025-03-23 14:18:00 -06:00
Jeremy Soller
fa4da5ce8a
Merge pull request #893 from jasonrhansen/box-select-fixes
Simplify and fix drag selection and auto scroll
2025-03-23 13:30:29 +00:00
Jason Rodney Hansen
9f8539875d Disable drag-select when not in multiple mode 2025-03-22 20:08:02 -06:00
Jason Rodney Hansen
5cd9729d00 Add auto-scroll to dialog 2025-03-22 19:28:36 -06:00
Jason Rodney Hansen
a657c5e409 Simplify and fix box selection and autoscroll 2025-03-22 18:51:48 -06:00
VandaLHJ
0e6b94cc90
Update cosmic_files.ftl PL Translation Type-to-search Delete and stuff
Added missing bits
2025-03-22 14:45:38 +01:00
Jeremy Soller
60a8d36841
Merge pull request #890 from feikedonia/master
i18n(nl) update Dutch translations
2025-03-21 15:22:27 +00:00
Feike Donia
f77d2e0251
i18n(nl) update Dutch translations 2025-03-21 09:15:32 +01:00
Jeremy Soller
2dbcd76d3b
Allow dialog open button when opening directory and nothing is selected 2025-03-19 16:11:10 -06:00