Commit graph

142 commits

Author SHA1 Message Date
Jason Rodney Hansen
0971f6f20f Open files with middle click
* Directories open in new tab
* All others open the file
2024-07-02 08:14:51 -06:00
Josh Megnauth
cd135fc248 Bump trash-rs to fix panic for non-Unicode paths
See: https://github.com/Byron/trash-rs/issues/105

Some operating systems or file systems support non-Unicode paths (e.g.
Linux and the BSDs). `trash-rs` panicked when trashing or listing the
trash with non-UTF8 names.

For COSMIC Files specifically, the program panics on start if the trash
contains files with invalid Unicode names. It also panics when
attempting to trash files with said names.

To replicate:
```sh
touch ''$'\250'
gio trash ''$'\250'

cosmic-files
```
2024-06-19 08:28:13 -06:00
Bjorn Ove Hay Andersen
553c11deb3 Disable code using trash::os_limited as it isn't available on macos 2024-06-14 06:59:55 -06:00
Jeremy Soller
0ec5f72169
Search in current tab 2024-06-10 13:02:06 -06:00
Jason Rodney Hansen
9af2919b1a Fix spacer height
This fixes the scrollbar showing up when there's space below the files.
2024-06-03 14:01:50 -06:00
Jason Rodney Hansen
077c30b7e4 Fix drag selecting from empty area in grid view
This seems to have been broken by the latest libcosmic update.
2024-06-03 08:06:38 -06:00
Ashley Wulber
4a7c59b987 fix: DnD fixes 2024-05-31 18:07:12 -06:00
Jeremy Soller
6d8dbb398e Show search results in tab 2024-05-31 15:20:06 -06:00
Jeremy Soller
c5bff149c0 Implement search backend 2024-05-31 15:20:06 -06:00
Jeremy Soller
aab8d310df
Use widget::responsive for tab responsiveness, fixes #204 2024-05-31 09:51:34 -06:00
Jeremy Soller
7a3f9d5666
Ensure list directories first works with all sorting options, fixes #206 2024-05-30 13:19:09 -06:00
maciekk64
a085499c0e default view config 2024-05-29 17:56:42 -06:00
Jeremy Soller
322dad2b8a
Implement view menu, fixes #184 2024-05-28 10:40:36 -06:00
Jeremy Soller
e947bee833
Update tab location when drag and dropping, fixes #178 2024-05-28 09:28:46 -06:00
Jason Rodney Hansen
7ee45e76d0 Fix for inadvertent DND in list view 2024-05-27 19:24:07 -06:00
Jason Rodney Hansen
748f7738e6 Fix for arrow key navigation/selection after click
This fixes a bug where using the arrow keys to move around after
clicking on an item with the mouse would require the arrow key to be
pressed twice before moving.
2024-05-27 19:24:07 -06:00
Jason Rodney Hansen
d8e258dfb1 Implement shift+click selection 2024-05-27 19:24:07 -06:00
Jason Rodney Hansen
80aa2c31e9 Handle drag-select with shift or ctrl pressed 2024-05-27 19:24:07 -06:00
Jason Rodney Hansen
d756bdf2e9 Ctrl+click should toggle selection 2024-05-27 19:24:07 -06:00
Jeremy Soller
e451bd3454
Use mousearea outside of scrollable to get tab size, fixes #164 2024-05-17 15:09:06 -06:00
Ashley Wulber
e2444ab697 fix: guess image format before decoding 2024-05-15 12:16:35 -06:00
Jeremy Soller
4fcdc77603
Update libcosmic 2024-05-14 11:16:13 -06:00
Jeremy Soller
8ba70f2f93
Workaround to support favorited files 2024-05-09 13:55:57 -06:00
Jeremy Soller
76a95820a4
Fix scroll on empty folders 2024-05-09 13:28:44 -06:00
Jeremy Soller
1116eaa05a
Add empty trash, fixes #118 2024-05-09 13:24:06 -06:00
Jeremy Soller
a1d11edfa5 Downgrade serde for better rust compatibility 2024-04-27 08:25:02 -06:00
wiiznokes
6d700399f9 fix #26 2024-04-25 20:05:24 -06:00
Michael Aaron Murphy
8c3af501ca feat: add context menus to nav bar 2024-04-23 11:49:14 -06:00
Ashley Wulber
11a2d0deef feat: dnd to trash 2024-04-10 13:16:25 -06:00
Ashley Wulber
926a16ce2e
Dnd (#103)
* wip: drag offers

* wip: dnd

* wip: dnd

* feat: hover indicators

* feat: change directory on hover

* fix: dnd drop filtering and drop kind

* fix: mouse area selection rectangle

* fix: better drag rectangle and dnd drag interaction

* feat: nav and tab dnd

* cleanup: remove extra patch

* cleanup: delete leftover dnd widgets

* chore: update libcosmic

* fix: list view spacer height overflow
2024-04-10 09:41:25 -06:00
Jeremy Soller
d0a2a9262e
Optimization for reloading metadata 2024-03-20 16:27:00 -06:00
Jeremy Soller
3ab5597fc3
Load thumbnails with maximum grid icon size, fixes #78 2024-03-20 10:06:21 -06:00
Jeremy Soller
94dd1b04d5
Do not give trash items a path 2024-03-20 09:56:54 -06:00
Jeremy Soller
39888d5604
Merge pull request #84 from edfloreshz/master
refactor(menu): update menu declaration.
2024-03-18 20:27:11 -06:00
Jeremy Soller
d15372a635
Do not cd to path that is not a directory, fixes #87 2024-03-18 14:46:54 -06:00
Eduardo Flores
57e41766b9 improv(menu): update menu declaration.
- Updated libcosmic
- Updated menu declaration.
2024-03-17 14:49:24 -07:00
Josh Megnauth
7c8bcbe998 Nicer context menu sort buttons
Adds an up or down arrow code point to context menu sort buttons.
2024-03-16 11:24:19 -06:00
Josh Megnauth
1a7a4e19aa Sort grid view
Enables sorting grid view as list view is sorted.
2024-03-16 11:24:19 -06:00
Josh Megnauth
e22c74d721 Add sort by option to config for new tabs 2024-03-16 11:24:19 -06:00
Josh Megnauth
a4b38c4983 Refactor sorting option to TabConfig 2024-03-16 11:24:19 -06:00
Jeremy Soller
f76ab74a9d
Enable preview of svg 2024-03-04 13:41:18 -07:00
Jeremy Soller
1c7561accf
Do not use mime apps fallback, will be adjusted in session 2024-03-04 12:49:23 -07:00
Jeremy Soller
a4efff3873
Put default app first in open with list 2024-03-04 11:30:51 -07:00
Jeremy Soller
3e1e6b090e
Add more info to open with context page 2024-03-04 11:19:43 -07:00
Jeremy Soller
672821a5fc
Use shared-mime-info for mime detection 2024-03-04 11:16:25 -07:00
Jeremy Soller
ac4626d9cf
Implement open with buttons 2024-03-04 10:39:48 -07:00
Jeremy Soller
26173d6529
Partial open with implementation, parse mimeapps.list files 2024-03-01 16:10:30 -07:00
Jeremy Soller
18e847abb8
Calculate open with apps, when xdg feature is enabled 2024-03-01 13:20:47 -07:00
Jeremy Soller
d2d0b02afd
Improve keyboard focus handling 2024-02-29 21:13:03 -07:00
Jeremy Soller
4690225d95
Do not set select_focus that much 2024-02-29 21:00:24 -07:00