Commit graph

14 commits

Author SHA1 Message Date
Josh Megnauth
3167a9936c Add tab config to settings page
* Allow tabs to be configured globally
* Update each tab when global tab config changes
2024-02-20 09:58:35 -07:00
Josh Megnauth
e697e96afe Small TabConfig clean ups
* Rename `config::Tab` to `TabConfig`
* Use the loaded tab config instead of the default (oops)
2024-02-11 07:23:02 -07:00
Josh Megnauth
bc5b46d552 feat: Toggle showing hidden items
`ctrl` + `h` toggles the visibility of hidden files and folders per tab.
The per tab option overrides the global option. So, a user may set
hidden items to be visible by default (global option) but override it
per tab with `ctrl` + `h`.

Currently, per tab options aren't presented anywhere in the UI such as a
menu, so the hotkey is the only way to use this feature for now.
2024-02-11 07:23:02 -07:00
Josh Megnauth
073a9a95ab Add a per Tab config
A tab config is useful for allowing users to show hidden files, sorting
by different metrics such as size or MIME type, as well as providing a
way to implement some of the todos such as configurable icon sizes for
views.
2024-02-11 07:23:02 -07:00
Jeremy Soller
cb4bd84ea5 Rebase on new libcosmic and iced 2024-02-09 07:09:51 -07:00
W
88089fecb4 Support back/forward mouse buttons 2024-02-08 14:10:36 -07:00
Josh Megnauth
2814834251 Feature to move up file hierarchy with Alt+Up
From: https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts#Browsers_/_Go_menu

Alt+Up moves up the file hierarchy until it hits root.
So, if "/home/josh" is opened, Alt+Up would move to "/home"
2024-02-08 14:10:03 -07:00
Josh Megnauth
843997a0d8 Add Alt-Left and Alt-Right for history navigation
Common shortcuts.
2024-02-08 14:10:03 -07:00
Josh Megnauth
d2cfae5dc7 Unit tests for tab::Message::Click
Tests for selecting items and opening items with double clicks.
2024-02-05 19:11:40 -07:00
Josh Megnauth
b0e8299ff4 Unit test for tab::Message::Location
* Implement a working unit test for `tab::Message::Location`
* Add more helper test functions and improve existing logic
2024-02-05 19:11:40 -07:00
Josh Megnauth
5d51190169 Support hidden files for tests 2024-02-05 19:11:40 -07:00
Jeremy Soller
588211adb0 Enable multi-window feature of libcosmic 2024-02-01 19:40:37 -07:00
Jeremy Soller
d271159c07
Add dialog example 2024-02-01 15:55:52 -07:00
Jeremy Soller
87ad2f7dd9
Convert to library 2024-02-01 15:14:14 -07:00