Ordinal comparison sorts non-alphanumeric chars (like underscore etc) differently than expected (i.e compared to filesystem sorting etc).
InvariantCulture comparison corrects this, without imposing cultural differences. (A possible alternative would be CurrentCulture comparison.)
The earlier code, when comparing a single digit-char against non-digit-char, used char.CompareTo() where the comparison method can not be specified.
To fix this, we now use the same Comparer for all non-all-digits string comparisons.
- Keep translation keys in order
- Add missing translations for zh_CN and en_US
- Rename `WorkingCopy.ClearCommitMessageHistory` to `WorkingCopy.ClearCommitMessageHistoryAsync`
- It's not necessary to use `Dispatcher.UI.Invoke` in event callback
Signed-off-by: leo <longshuang@msn.cn>
* feat: add clear history button to commit message template/history dropdown
- Added ClearCommitMessageHistory method to WorkingCopy ViewModel with user confirmation
- Added "Clear History" menu item to commit message picker dropdown
- Implemented thread-safe collection clearing using Dispatcher.UIThread.Invoke
- Added localization support for clear history button and confirmation dialog
- Follows existing codebase patterns for destructive operations with async/await
* fix: dotnet format
- Remove navigation by prev/next change of first/last visible block. Always use Block-Navigation
- Remove auto-updating current actived block on text view scrolling
- Auto update current active block when caret position changed
- Clean up unused resources
Signed-off-by: leo <longshuang@msn.cn>
- Move some data-only code from `Views` to `ViewModels`
- Remove unnecessary attributes
- This commit also contains a feature request #1722
Signed-off-by: leo <longshuang@msn.cn>
Trying to open the Windows Terminal on the Welcome Page crashed with a
`NullReferenceException`. The code for Windows after the fix is similar
to the corresponding code for Linux.
- BREAKING CHANGE: Change `${BRANCH}` to pure branch name, which means it not contains the `${REMOTE}` part for remote branch
- Re-design UI/UX for custom action
Signed-off-by: leo <longshuang@msn.cn>