Commit Graph

88 Commits

Author SHA1 Message Date
leo
79bc093990 enhance: call GC.Collect() manually after command palette closed
Signed-off-by: leo <longshuang@msn.cn>
2025-10-28 16:38:48 +08:00
leo
66676dde93 refactor: all command palette should derived from ViewModels.ICommandPalette
Signed-off-by: leo <longshuang@msn.cn>
2025-10-28 10:43:24 +08:00
leo
ca544d9763 enhance: close command palette popups before active page changed
Signed-off-by: leo <longshuang@msn.cn>
2025-10-27 17:29:54 +08:00
leo
cceaf31baf refactor: rewrite pages switcher
- Rename `QuickLauncher` to `LauncherPagesCommandPalette`
- Auto hide groups if there's no visible choices
- Do not show current active page in `Tabs` group
- Supports to use `Tab` to jump between groups

Signed-off-by: leo <longshuang@msn.cn>
2025-10-27 17:23:00 +08:00
leo
3b9e578acb refactor: rewrite Ctrl+P/⌘+P feature
Signed-off-by: leo <longshuang@msn.cn>
2025-10-24 16:43:37 +08:00
leo
8a4a8be2a2 ux: remove workspace switcher popup and its hotkey binding (#1855)
Signed-off-by: leo <longshuang@msn.cn>
2025-10-16 17:49:59 +08:00
leo
33de0fe219 enhance: clean up popup before closing tab
Signed-off-by: leo <longshuang@msn.cn>
2025-08-13 11:06:56 +08:00
leo
bd81ccd94f fix: main thread deadlock cause by calling .Result directly (#1720)
Signed-off-by: leo <longshuang@msn.cn>
2025-08-12 16:03:58 +08:00
leo
f65288247b refactor: move context menu creation from ViewModels to Views (PART 3)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-23 12:38:30 +08:00
leo
b85f100d84 code_review: PR #1532
- remove `MenuItemExtension`
- display `Tag` as hotkey tips when `InputGesture` is null
- remove `Avalonia.Input` reference in `ViewModels`
- rewrite `InteractiveRebase` view to avoid using `Tag` in menu item

Signed-off-by: leo <longshuang@msn.cn>
2025-07-07 12:44:31 +08:00
leo
cdb84c7c43 typo: ShowDailog -> ShowDialog
Signed-off-by: leo <longshuang@msn.cn>
2025-07-04 15:36:45 +08:00
leo
a6ebc1502c refactor: show child-window and modal dialog
Signed-off-by: leo <longshuang@msn.cn>
2025-07-04 14:49:04 +08:00
leo
40765826ce code_review: PR #1492
- Remove all synchronous method in commands
- `Command.ReadToEndAsync` now is protected method
- Rename `ResultAsync` to `GetResultAsync`
- Call `ConfigureAwait(false)` when there's no context

Signed-off-by: leo <longshuang@msn.cn>
2025-07-03 17:30:06 +08:00
Nathan Baulch
ec17ea9901 code_style: general cleanup (#1497) 2025-07-03 10:32:03 +08:00
Nathan Baulch
25afcba44b refactor: auto dispatch notifications to UI thread in Launcher (#1489) 2025-07-02 13:09:30 +08:00
leo
f36ab4a189 feature: remember main window position (#1315)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-26 17:42:02 +08:00
Nathan Baulch
d404f6dbe2 code_style: general cleanup (#1428) 2025-06-18 09:29:18 +08:00
leo
7de5991ecb code_review: PR #1415
- Column for hotkey in `Reset` popup should use `Auto` for width
- Add `SelectionBoxItemTemplate` for current selected mode in `Reset` popup

Signed-off-by: leo <longshuang@msn.cn>
2025-06-12 09:54:53 +08:00
Nathan Baulch
ffac71b15f code_style: general cleanup (#1415)
* code_style:  general cleanup

* code_style: whitespace cleanup
2025-06-12 09:35:37 +08:00
Nathan Baulch
7bba40d03f typos: (#1397) 2025-06-06 12:10:55 +08:00
Göran W
88c38b4139 enhance: unified all file-path normalization - use char-replace, trim trailing slash 2025-06-05 21:17:18 +08:00
leo
aff003fd6d enhance: cleanup unused resources
Signed-off-by: leo <longshuang@msn.cn>
2025-05-18 22:00:35 +08:00
leo
9614b995d8 refactor: workspace/page switcher (#1330)
- add `Switch Tab` popup
- change hotkey to open `Preferences` to `Ctrl+,/⌘+,`
- change hotkey to open `Switch Workspace` to `Ctrl+Shift+P/⌘+⇧+P`
- change hotkey to open `Switch Tab` to `Ctrl+P/⌘+P`

Signed-off-by: leo <longshuang@msn.cn>
2025-05-18 19:36:17 +08:00
leo
4c1ba717a7 refactor: rewrite workspace switcher (#1267)
Signed-off-by: leo <longshuang@msn.cn>
2025-05-17 20:14:09 +08:00
leo
f121975a28 code_review: PR #1328
* remove hotkey to open workspace dropdown menu
* call orignal `ViewModels.Launcher.SwitchWorkspace` directly in view
* add missing translation for Chinese

Signed-off-by: leo <longshuang@msn.cn>
2025-05-17 18:37:02 +08:00
popara
01945f231e Added workspaces shortcuts (#1328)
- added Alt+Space for opening Workspaces context menu (which can then be navigated normally with arrows)
- added Alt+1 through Alt+9 for switching to corresponding workspace
2025-05-17 13:17:10 +08:00
leo
825b74c2a3 refactor: use String.AsSpan(int, int) instead of String.AsSpan().Slice(int, int)
Signed-off-by: leo <longshuang@msn.cn>
2025-04-29 09:44:06 +08:00
qiufengshe
48bb8e91de perf: minimize temporary strings for better performance (#1255) 2025-04-29 09:33:14 +08:00
leo
750ca8ec61 refactor: use custom view locator to create new window/dialog (#1216)
Signed-off-by: leo <longshuang@msn.cn>
(cherry picked from commit 3e6f2b25f15b263e2b84922abc5cf6d621d62a83)
2025-04-21 15:32:21 +08:00
leo
fc85dd3269 enhance: improve Repository.Open() performance (#1121)
Signed-off-by: leo <longshuang@msn.cn>
2025-03-24 19:37:39 +08:00
leo
b4ab4afd3a code_review: PR #1103
Since we only use `$GIT_COMMON_DIR` in filesystem watcher, it is unnecessary to store this value in `Repository`, and we can query the `$GIT_COMMON_DIR` only when it looks like a worktree

Signed-off-by: leo <longshuang@msn.cn>
2025-03-17 16:19:59 +08:00
Gadfly
cea8a90680 refactor: use $GIT_COMMON_DIR instead of cut $GIT_DIR/worktrees (#1103) 2025-03-17 15:56:13 +08:00
Gadfly
c1c0e7b2a0 enhance: Save Preferences after switched Workspace and closed Preferences (#1073) 2025-03-10 12:04:19 +08:00
leo
b9b5220590 feature: bare repository support 2025-01-14 17:26:01 +08:00
wl2776
6e5626f267 fix: several typos in source code (#895) 2025-01-13 10:11:28 +08:00
leo
275a52eb5c refactor: add repository 2025-01-11 11:28:37 +08:00
leo
9baa2c9fad refactor: get owner page of repsitory dynamically 2025-01-09 09:21:58 +08:00
leo
f06b1d5d51 refactor: merge ViewModels.PopupHost into ViewModels.LauncherPage 2025-01-08 21:36:49 +08:00
leo
f418b72c64 feature: use [$workspace] $repo_name ($repo_path) as main window's title (#818) 2024-12-16 15:47:33 +08:00
leo
4a6cbddeac refactor: select the previous tab while closing the actived one (#621)
Signed-off-by: leo <longshuang@msn.cn>
2024-10-30 09:53:58 +08:00
leo
c67cdb931f enhance: stop switching workspace when one or more tasks are running in opened pages 2024-10-11 17:37:34 +08:00
leo
1ba294a07b refactor: move auto-fetch from global preference to repository settings 2024-09-26 10:50:21 +08:00
leo
85b83990a8 code_style: run dotnet format 2024-09-25 16:24:04 +08:00
leo
acf71a30b8 enhance: re-calculate the opened repositories in active workspace (#511) 2024-09-25 15:07:23 +08:00
leo
84fda6a8db feature: add property RestoreOnStartup property to ViewModels.Workspace (#488) 2024-09-18 21:35:33 +08:00
leo
9c6745c271 enhance: skip auto fetching when index.lock file exists in the repository's git dir 2024-09-18 14:49:53 +08:00
leo
2d611cf988 fix: repository settings did not saved correctly when closing app (#459) 2024-09-11 10:20:12 +08:00
leo
3cebff6722 enhance: when open sourcegit with repository from commandline disable all workspaces 2024-09-10 17:47:08 +08:00
leo
9934586ee0 enhance: remember the active page index for each workspace (#445) 2024-09-09 19:40:44 +08:00
leo
e63034acd5 enhance: when open repository from commandline, create a new workspace Unnamed for it, and never add it to preference (#445) 2024-09-09 19:14:44 +08:00