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
75874caf9d
Use CSDs on Redox, set min size
2024-02-10 19:09:37 -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
W
d79349efaf
Capture mouse back/forward
2024-02-08 14:10:36 -07:00
Josh Megnauth
c636ca8b23
Clean up LocationUp
...
Path doesn't need to be canonicalized.
2024-02-08 14:10:03 -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
6378d54f7b
Add unit tests for tab history
2024-02-05 19:11:40 -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
2832e6066e
Forward selected path to caller
2024-02-01 17:43:41 -07:00
Jeremy Soller
c6eecbddd8
Add open/cancel buttons to dialog
2024-02-01 17:34:22 -07:00
Jeremy Soller
c017663557
Do not open files in dialog mode
2024-02-01 15:57:01 -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
Joshua Megnauth
d6c58991c0
Test helpers and unit tests ( #26 )
...
* Implement a few utility functions for tests
Most tests would require a test file hierarchy instead of operating on a
live system.
* Add unit tests for `tab::scan_path`
Tests:
* Works on a valid path
* Returns an empty Vec on an invalid directory
* Returns an empty Vec for an empty directory
I also implemented a few test helpers that may be useful for other
unit tests.
* Less spammy test logs and placate Clippy.
2024-02-01 09:29:10 -07:00
Jeremy Soller
60eeb724d1
Nav bar trash icon loads state at startup
2024-01-31 14:15:21 -07:00
Jeremy Soller
2e84a26f7e
Add location to empty view, reverse sort operations
2024-01-30 11:32:47 -07:00
Jeremy Soller
12d087abd9
Watch folders for changes
2024-01-30 11:26:23 -07:00
Jeremy Soller
12a2a39a9f
Implement history, show operations, implement trash
2024-01-30 10:47:41 -07:00
Jeremy Soller
004fd617ea
Show key bindings in menu
2024-01-29 12:21:54 -07:00
Jeremy Soller
380a3b2ff7
Add stub for operations
2024-01-29 11:58:50 -07:00
Jeremy Soller
c2a0d99086
Add rudimentary manual path editing
2024-01-29 11:58:36 -07:00
Jeremy Soller
5e1448fb6c
Adjust grid item size to match mockup
2024-01-29 11:25:43 -07:00
Jeremy Soller
1228718b10
Add breadcrumbs to grid view
2024-01-29 11:22:21 -07:00
Jeremy Soller
9a291f60f2
Make last item in breadcrumbs bold
2024-01-29 11:16:19 -07:00
Jeremy Soller
af6af1cf35
Improvements to breadcrumbs, say Home instead of folder name
2024-01-29 11:09:05 -07:00
Jeremy Soller
1bb2d3afca
Add modified to list view
2024-01-29 10:39:12 -07:00
Jeremy Soller
eede1c773d
Format sizes with base 10 units
2024-01-29 10:34:09 -07:00
Wyatt Herkamp
44960f5d08
Fix Windows Bug
2024-01-28 17:54:13 -07:00
Wyatt Herkamp
65227fcd76
update depends
2024-01-28 17:54:13 -07:00
Ron Waldon-Howe
a4e7b52467
fix: cargo update to target available cosmic-text commit
2024-01-20 20:03:11 -07:00
Josh Megnauth
e126412d8a
Implement hot keys to cycle through tabs
...
`ctrl-PageUp` cycles tabs forward.
`ctrl-PageDown` cycles tabs backwards.
I initially used `ctrl-tab` and `ctrl-shift-tab`, but pressing `tab` would select elements of the GUI as well as cycle through tabs. It was weird and buggy.
2024-01-16 19:29:53 -07:00
Josh Megnauth
631d8cd20d
Add shortcut to close the current tab
...
Defaults to `ctrl-w`.
Source: https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts#Tab_management
2024-01-16 19:29:53 -07:00
Jeremy Soller
6536a66ba2
Add helper for setting config values efficiently
2024-01-14 18:55:15 -07:00
Jeremy Soller
209622b758
Breadcrumb view
2024-01-10 12:57:30 -07:00
Jeremy Soller
1aba09a4d0
Add menu
2024-01-10 11:39:04 -07:00
Jeremy Soller
35c08f469e
Allow multiple selection when holding ctrl
2024-01-10 10:47:12 -07:00
Jeremy Soller
0708c0eb39
Fix double click
2024-01-10 10:29:49 -07:00
Jeremy Soller
ff87795db0
Proper handling of right click with multiple selection
2024-01-10 10:26:30 -07:00
Jeremy Soller
716991a302
Change context menu based on selection
2024-01-10 10:15:16 -07:00
Jeremy Soller
07c91042db
Improve selection logic
2024-01-10 09:47:47 -07:00
Jeremy Soller
69531644ff
Update to upstream trash-rs
2024-01-10 08:55:47 -07:00
Jeremy Soller
8a46c4bbe1
Reduce nav_bar width and misc improvements
2024-01-09 15:42:42 -07:00
Jeremy Soller
b354a7d9e2
Add nav bar
2024-01-09 15:34:48 -07:00
Jeremy Soller
94665024f8
Round popover position to fix rendering artifacts
2024-01-06 20:38:08 -07:00
Jeremy Soller
f77488f279
Show number of children for regular folders
2024-01-06 20:31:00 -07:00