@adecore/editor 0.47.0 → 0.48.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,6 +119,7 @@ export declare const KEYMAP: {
119
119
  readonly historyBack: KeyBinding;
120
120
  readonly historyForward: KeyBinding;
121
121
  readonly recentLocations: KeyBinding;
122
+ readonly jumpToSource: KeyBinding;
122
123
  readonly nextProblem: KeyBinding;
123
124
  readonly previousProblem: KeyBinding;
124
125
  readonly nextHighlight: KeyBinding;
@@ -128,7 +129,7 @@ export declare const KEYMAP: {
128
129
  readonly replace: KeyBinding;
129
130
  };
130
131
  export type KeymapId = keyof typeof KEYMAP;
131
- export type OptionalKeymapId = 'toggleRenderedDocs' | 'increaseFontSize' | 'decreaseFontSize' | 'resetFontSize' | 'sortLines' | 'reverseLines' | 'uniqueLines' | 'convertIndentsToSpaces' | 'convertIndentsToTabs' | 'completeCurrentStatement' | 'hippieCompletion' | 'hippieBackwardCompletion' | 'moveStatementUp' | 'moveStatementDown' | 'lastEditLocation' | 'nextEditLocation' | 'methodUp' | 'methodDown' | 'pasteFromHistory' | 'pasteAsPlainText' | 'nextChange' | 'previousChange' | 'codeBlockStart' | 'codeBlockEnd' | 'codeBlockStartWithSelection' | 'codeBlockEndWithSelection' | 'wrapWithAbbreviation' | 'insertLiveTemplate' | 'surroundWith' | 'surroundWithLiveTemplate' | 'unwrap' | 'saveAsLiveTemplate' | 'typeHierarchy';
132
+ export type OptionalKeymapId = 'toggleRenderedDocs' | 'increaseFontSize' | 'decreaseFontSize' | 'resetFontSize' | 'sortLines' | 'reverseLines' | 'uniqueLines' | 'convertIndentsToSpaces' | 'convertIndentsToTabs' | 'completeCurrentStatement' | 'hippieCompletion' | 'hippieBackwardCompletion' | 'moveStatementUp' | 'moveStatementDown' | 'lastEditLocation' | 'nextEditLocation' | 'methodUp' | 'methodDown' | 'pasteFromHistory' | 'pasteAsPlainText' | 'nextChange' | 'previousChange' | 'codeBlockStart' | 'codeBlockEnd' | 'codeBlockStartWithSelection' | 'codeBlockEndWithSelection' | 'wrapWithAbbreviation' | 'insertLiveTemplate' | 'surroundWith' | 'surroundWithLiveTemplate' | 'unwrap' | 'saveAsLiveTemplate' | 'jumpToSource' | 'typeHierarchy';
132
133
  export type Keymap = Readonly<Record<Exclude<KeymapId, OptionalKeymapId>, KeyBinding> & Partial<Record<OptionalKeymapId, KeyBinding>>>;
133
134
  export type KeymapOverrides = Partial<Record<KeymapId, Partial<KeyBinding>>>;
134
135
  export declare const KEYMAP_IDS: KeymapId[];
@@ -123,6 +123,8 @@ export const KEYMAP = {
123
123
  historyBack: bind('Mod+[', 'Ctrl+Alt+ArrowLeft'),
124
124
  historyForward: bind('Mod+]', 'Ctrl+Alt+ArrowRight'),
125
125
  recentLocations: bind('Mod+Shift+E'),
126
+ // IntelliJ's Jump to Source, from a diff to the file. Only a diff answers it, so in a file Cmd+Down stays Text End.
127
+ jumpToSource: bind('Meta+ArrowDown', 'F4'),
126
128
  nextProblem: bind('F2'),
127
129
  previousProblem: bind('Alt+Shift+F2'),
128
130
  nextHighlight: bind('Ctrl+Alt+ArrowDown', 'Alt+F3'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/editor",
3
- "version": "0.47.0",
3
+ "version": "0.48.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -54,7 +54,7 @@
54
54
  "test": "bun test --conditions=source"
55
55
  },
56
56
  "dependencies": {
57
- "@adecore/editor-core": "0.47.0",
57
+ "@adecore/editor-core": "0.48.1",
58
58
  "linkedom": "^0.18.14",
59
59
  "shiki": "^4.5.0"
60
60
  },
@@ -147,6 +147,8 @@ export const KEYMAP = {
147
147
  historyBack: bind('Mod+[', 'Ctrl+Alt+ArrowLeft'),
148
148
  historyForward: bind('Mod+]', 'Ctrl+Alt+ArrowRight'),
149
149
  recentLocations: bind('Mod+Shift+E'),
150
+ // IntelliJ's Jump to Source, from a diff to the file. Only a diff answers it, so in a file Cmd+Down stays Text End.
151
+ jumpToSource: bind('Meta+ArrowDown', 'F4'),
150
152
  nextProblem: bind('F2'),
151
153
  previousProblem: bind('Alt+Shift+F2'),
152
154
  nextHighlight: bind('Ctrl+Alt+ArrowDown', 'Alt+F3'),
@@ -193,6 +195,7 @@ export type OptionalKeymapId =
193
195
  | 'surroundWithLiveTemplate'
194
196
  | 'unwrap'
195
197
  | 'saveAsLiveTemplate'
198
+ | 'jumpToSource'
196
199
  | 'typeHierarchy';
197
200
 
198
201
  export type Keymap = Readonly<Record<Exclude<KeymapId, OptionalKeymapId>, KeyBinding> & Partial<Record<OptionalKeymapId, KeyBinding>>>;