Przeglądaj źródła

Reverses j/k order

main
Eric Amodio 3 lat temu
rodzic
commit
34a8d127be
2 zmienionych plików z 8 dodań i 2 usunięć
  1. +6
    -0
      CHANGELOG.md
  2. +2
    -2
      src/webviews/apps/rebase/rebase.ts

+ 6
- 0
CHANGELOG.md Wyświetl plik

@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Fixed
- Fixes up/down order of the alternate shortcuts on the Interactive Rebase Editor
## [11.5.0] - 2021-06-14
### Added

+ 2
- 2
src/webviews/apps/rebase/rebase.ts Wyświetl plik

@ -183,7 +183,7 @@ class RebaseEditor extends App {
e.preventDefault();
let index = me.getEntryIndex(ref) + (e.key === 'k' ? 1 : -1);
let index = me.getEntryIndex(ref) + (e.key === 'j' ? 1 : -1);
if (index < 0) {
index = me.state.entries.length - 1;
} else if (index === me.state.entries.length) {
@ -199,7 +199,7 @@ class RebaseEditor extends App {
if (ref) {
e.stopPropagation();
me.moveEntry(ref, e.key === 'K' ? 1 : -1, true);
me.moveEntry(ref, e.key === 'J' ? 1 : -1, true);
}
}
} else if (!e.metaKey && !e.altKey && !e.ctrlKey) {

Ładowanie…
Anuluj
Zapisz