Skip to content

Commit b8d93c5

Browse files
committed
Add window state persistence
- Add `tauri-plugin-window-state` to remember window position and size across launches - Create `desktop.json` capability with `window-state:default` permission - Set `visible: false` in `tauri.conf.json` to prevent flashing on restore (plugin shows window after restoring state) - State stored in ``~/Library/Application Support/com.veszelovszki.rusty-commander/.window-state.json`
1 parent 546ed72 commit b8d93c5

8 files changed

Lines changed: 3146 additions & 4127 deletions

File tree

docs/todo.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
UI
2+
3+
- [x] Add dark mode
4+
- [x] Automate dark mode
5+
- [ ] Remember last window size
6+
7+
Listing
8+
9+
- Add file watching to auto-update changes. It should be as close to immediate as possible
10+
- Add gradual
11+
- Improve performance:
12+
- Add file navigation (up/down) functionality
13+
- Add full/brief view
14+
- Add `..` (up one folder) item
15+
- Add navigation feature (go in dir, go up one dir)
16+
- Make sure it lists Dropbox files correctly, incl. files that are loaded on the fly
17+
18+
Settings
19+
20+
- Add settings window
21+
- Add settings to menu
22+
- Add quick actions menu
23+
- Add toggle for showing/hiding hidden files (files starting with '.')
24+
- Make sorting configurable (by name, size, date, etc.)
25+
26+
Actions
27+
28+
- Add file selection feature
29+
- Add copy, move, delete functionality

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"license": "MIT",
2222
"dependencies": {
2323
"@tauri-apps/api": "^2",
24-
"@tauri-apps/plugin-opener": "^2"
24+
"@tauri-apps/plugin-opener": "^2",
25+
"@tauri-apps/plugin-window-state": "~2.4.1"
2526
},
2627
"devDependencies": {
2728
"@eslint/js": "^9.39.2",

0 commit comments

Comments
 (0)