Commit graph

33 commits

Author SHA1 Message Date
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
af6af1cf35
Improvements to breadcrumbs, say Home instead of folder name 2024-01-29 11:09:05 -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
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
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
1ba5be1116
Partial trash implementation 2024-01-05 16:17:23 -07:00
Jeremy Soller
6acac60526
Add button to toggle view 2024-01-05 15:17:38 -07:00
Jeremy Soller
40ee305eb2
Improve context menu operation 2024-01-05 15:10:46 -07:00
Jeremy Soller
5806c420a8
Improve style of properties 2024-01-05 14:58:50 -07:00
Jeremy Soller
42c4ec9dad
Add simple file properties 2024-01-05 14:44:20 -07:00
Jeremy Soller
bb5403faf9
Add stubs for new file/new folder 2024-01-05 12:33:54 -07:00
Jeremy Soller
ac93fc79d4
Add context menu 2024-01-05 11:18:38 -07:00
Jeremy Soller
7efe6efa30
Rescan in background and describe empty folders 2024-01-05 08:55:18 -07:00
Jeremy Soller
eec07d9631 Add home button, canonicalize paths 2024-01-03 17:04:08 -07:00
Jeremy Soller
68be49302b
Bring in mime icon implementation from cosmic-edit 2024-01-03 15:33:28 -07:00
Jeremy Soller
9978f246b9
Basic implementation 2024-01-03 15:27:32 -07:00