mirror of
https://github.com/Silverquark/dance.git
synced 2024-08-16 14:20:52 +03:00
Fix typos
This commit is contained in:
parent
9deae6adb6
commit
66fb04d607
@ -370,7 +370,7 @@ const builtinKeybindings = [
|
||||
{
|
||||
key: "Ctrl+V",
|
||||
when: "editorTextFocus && dance.mode == 'normal'",
|
||||
title: "Temporart Insert mode",
|
||||
title: "Temporary Insert mode",
|
||||
command: "dance.modes.set.temporarily.insert",
|
||||
},
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ export namespace Range {
|
||||
* A function that, given a position, returns the end of the object to which
|
||||
* the position belongs.
|
||||
*
|
||||
* If the whole object is being saught, the start position of the object will
|
||||
* If the whole object is being sought, the start position of the object will
|
||||
* also be given.
|
||||
*/
|
||||
export interface SeekEnd {
|
||||
@ -224,7 +224,7 @@ export namespace Range {
|
||||
start?: vscode.Position,
|
||||
) {
|
||||
if (start !== undefined) {
|
||||
// It is imposssible to determine if active is at leading or trailing or
|
||||
// It is impossible to determine if active is at leading or trailing or
|
||||
// in-sentence blank characters by just looking ahead. Therefore, we
|
||||
// search from the sentence start, which may be slightly less efficient
|
||||
// but always accurate.
|
||||
|
4
src/commands/README.md
generated
4
src/commands/README.md
generated
@ -65,7 +65,7 @@
|
||||
<tr><td><a href="./modes.ts#L27"><code>modes.insert.lineStart</code></a></td><td>Insert at line start</td><td><code>Shift+I</code> (<code>editorTextFocus && dance.mode == 'normal'</code>)</td></tr>
|
||||
<tr><td><a href="./modes.ts#L19"><code>modes.set.insert</code></a></td><td>Set mode to Insert</td><td></td></tr>
|
||||
<tr><td><a href="./modes.ts#L18"><code>modes.set.normal</code></a></td><td>Set mode to Normal</td><td><code>Escape</code> (<code>editorTextFocus && dance.mode == 'insert'</code>)</td></tr>
|
||||
<tr><td><a href="./modes.ts#L44"><code>modes.set.temporarily.insert</code></a></td><td>Temporart Insert mode</td><td><code>Ctrl+V</code> (<code>editorTextFocus && dance.mode == 'normal'</code>)</td></tr>
|
||||
<tr><td><a href="./modes.ts#L44"><code>modes.set.temporarily.insert</code></a></td><td>Temporary Insert mode</td><td><code>Ctrl+V</code> (<code>editorTextFocus && dance.mode == 'normal'</code>)</td></tr>
|
||||
<tr><td><a href="./modes.ts#L43"><code>modes.set.temporarily.normal</code></a></td><td>Temporary Normal mode</td><td><code>Ctrl+V</code> (<code>editorTextFocus && dance.mode == 'insert'</code>)</td></tr>
|
||||
<tr><td><a href="#modesset"><code>modes.set</code></a></td><td>Set Dance mode</td><td></td></tr>
|
||||
<tr><td><a href="#modessettemporarily"><code>modes.set.temporarily</code></a></td><td>Set Dance mode temporarily</td><td></td></tr>
|
||||
@ -594,7 +594,7 @@ Set Dance mode temporarily.
|
||||
| Title | Identifier | Keybindings | Commands |
|
||||
| --------------------- | ------------------------ | -------------- | ------------------------------------------------- |
|
||||
| Temporary Normal mode | `set.temporarily.normal` | `c-v` (insert) | `[".modes.set.temporarily", { input: "normal" }]` |
|
||||
| Temporart Insert mode | `set.temporarily.insert` | `c-v` (normal) | `[".modes.set.temporarily", { input: "insert" }]` |
|
||||
| Temporary Insert mode | `set.temporarily.insert` | `c-v` (normal) | `[".modes.set.temporarily", { input: "insert" }]` |
|
||||
|
||||
|
||||
This command:
|
||||
|
@ -41,7 +41,7 @@ export async function set(_: Context, inputOr: InputOr<string>) {
|
||||
* | Title | Identifier | Keybindings | Commands |
|
||||
* | --------------------- | ------------------------ | -------------- | ------------------------------------------------- |
|
||||
* | Temporary Normal mode | `set.temporarily.normal` | `c-v` (insert) | `[".modes.set.temporarily", { input: "normal" }]` |
|
||||
* | Temporart Insert mode | `set.temporarily.insert` | `c-v` (normal) | `[".modes.set.temporarily", { input: "insert" }]` |
|
||||
* | Temporary Insert mode | `set.temporarily.insert` | `c-v` (normal) | `[".modes.set.temporarily", { input: "insert" }]` |
|
||||
*
|
||||
* @noreplay
|
||||
*/
|
||||
|
@ -289,7 +289,7 @@ export class Extension implements vscode.Disposable {
|
||||
private _lastErrorMessage?: string;
|
||||
|
||||
/**
|
||||
* The last error message reported via `showDismissableErrorMessage`.
|
||||
* The last error message reported via `showDismissibleErrorMessage`.
|
||||
*/
|
||||
public get lastErrorMessage() {
|
||||
return this._lastErrorMessage;
|
||||
@ -306,9 +306,9 @@ export class Extension implements vscode.Disposable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays a dismissable error message in the status bar.
|
||||
* Displays a dismissible error message in the status bar.
|
||||
*/
|
||||
public showDismissableErrorMessage(message: string) {
|
||||
public showDismissibleErrorMessage(message: string) {
|
||||
// Log the error so that long error messages and stacktraces can still be
|
||||
// accessed by the user.
|
||||
this._lastErrorMessage = message;
|
||||
@ -352,7 +352,7 @@ export class Extension implements vscode.Disposable {
|
||||
return f();
|
||||
} catch (e) {
|
||||
if (!(e instanceof CancellationError)) {
|
||||
this.showDismissableErrorMessage(errorMessage(e));
|
||||
this.showDismissibleErrorMessage(errorMessage(e));
|
||||
}
|
||||
|
||||
return errorValue();
|
||||
@ -374,7 +374,7 @@ export class Extension implements vscode.Disposable {
|
||||
return await f();
|
||||
} catch (e) {
|
||||
if (!(e instanceof CancellationError)) {
|
||||
this.showDismissableErrorMessage(errorMessage(e));
|
||||
this.showDismissibleErrorMessage(errorMessage(e));
|
||||
}
|
||||
|
||||
return errorValue();
|
||||
|
@ -16,7 +16,7 @@ export const enum SelectionBehavior {
|
||||
export class Mode {
|
||||
private readonly _onChanged = new vscode.EventEmitter<readonly [Mode, readonly (keyof Mode)[]]>();
|
||||
private readonly _onDeleted = new vscode.EventEmitter<Mode>();
|
||||
private _changeSubcription: vscode.Disposable | undefined;
|
||||
private _changeSubscription: vscode.Disposable | undefined;
|
||||
|
||||
private _raw: Mode.Configuration = {};
|
||||
private _inheritsFrom: Mode;
|
||||
@ -86,14 +86,14 @@ export class Mode {
|
||||
this.apply(rawConfiguration, new SettingsValidator());
|
||||
}
|
||||
|
||||
this._changeSubcription = this._inheritsFrom?.onChanged(this._onParentModeChanged, this);
|
||||
this._changeSubscription = this._inheritsFrom?.onChanged(this._onParentModeChanged, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Disposes of the mode.
|
||||
*/
|
||||
public dispose() {
|
||||
this._changeSubcription?.dispose();
|
||||
this._changeSubscription?.dispose();
|
||||
|
||||
this._onDeleted.fire(this);
|
||||
|
||||
@ -138,9 +138,9 @@ export class Mode {
|
||||
const changedProperties: (keyof Mode)[] = [];
|
||||
|
||||
if (willInheritFrom !== this._inheritsFrom) {
|
||||
this._changeSubcription?.dispose();
|
||||
this._changeSubscription?.dispose();
|
||||
this._inheritsFrom = willInheritFrom;
|
||||
this._changeSubcription = willInheritFrom.onChanged(this._onParentModeChanged, this);
|
||||
this._changeSubscription = willInheritFrom.onChanged(this._onParentModeChanged, this);
|
||||
changedProperties.push("inheritsFrom");
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ export async function build(builder: Builder) {
|
||||
const examplesPerFunction = new Map<string, number>();
|
||||
|
||||
// Note: we use the name starting with ./ below to make sure the filename is
|
||||
// clickeable.
|
||||
// clickable.
|
||||
return unindent(4, `
|
||||
suite(${JSON.stringify(module.path.replace(/^dance/, "."))}, function () {
|
||||
${examples.map((example) => {
|
||||
|
@ -141,7 +141,7 @@ the quick brown fox
|
||||
|
||||
- .seek.word.backward { count: 9 }
|
||||
|
||||
Both overflowed and both falled back to the selection below.
|
||||
Both overflowed and both fell back to the selection below.
|
||||
|
||||
```
|
||||
the quick brown fox
|
||||
@ -165,7 +165,7 @@ the quick brown fox
|
||||
|
||||
- .seek.wordEnd { count: 5 }
|
||||
|
||||
Both overflowed and both falled back to the selection below.
|
||||
Both overflowed and both fell back to the selection below.
|
||||
|
||||
```
|
||||
the quick brown fox
|
||||
|
Loading…
Reference in New Issue
Block a user