Skip to content

Conversation

@suhailmalik07
Copy link

Fixes issue #18

@suhailmalik07
Copy link
Author

suhailmalik07 commented Jul 12, 2024

Hey, Please let me know what else needed to be done here.

@what-the-diff
Copy link

what-the-diff bot commented Jul 12, 2024

PR Summary

  • Added Editor Text Focus Condition to Keybindings
    The keybindings in both package.json and built-in.ts files have been updated to include conditions related to editorTextFocus. This ensures that these keybindings only function when the text editor is in focus.

  • Added Dance Mode Condition to Keybindings
    The keybindings in the built-in.ts file have been updated to include dance.mode in their conditions. This improvement will help ensure that these keybindings only operate when the Dance Mode is active.

  • Changed Unused Conditions in Keybindings
    The unused $exclude conditions in the built-in.ts file have been replaced with $exclude: [] for several keybindings. This simplifies the overall programming logic by ensuring no unintentional conditions are applied.

  • Updated Several Functions in qwerty.md
    Several functions, such as selections.copy.above, selections.faceForward, selections.hideIndices, selections.orderAscending, selections.orderDescending, etc., have been updated in src/commands/layouts/qwerty.md. This helps to document how these functions work and can improve developer understanding.

  • Updated splitLines Function in selections.ts
    The splitLines function on line 429 of src/commands/selections.ts file has been updated. This edit can affect how this function performs its job, possibly making it more efficient or suited to new requirements.

<tr><td><a href="../selections.ts#L808"><code>selections.copy.above</code></a></td><td>Copy selections above</td><td><code>Shift+Alt+C</code> (<code>editorTextFocus && dance.mode == 'normal'</code>)<code>Shift+Alt+C</code> (<code>editorTextFocus && dance.mode == 'visual'</code>)</td></tr>
<tr><td><a href="../selections.ts#L660"><code>selections.faceBackward</code></a></td><td>Backward selections</td><td></td></tr>
<tr><td><a href="../selections.ts#L659"><code>selections.faceForward</code></a></td><td>Forward selections</td><td><code>Shift+Alt+;</code> (<code>editorTextFocus && dance.mode == 'normal'</code>)</td></tr>
<tr><td><a href="../selections.ts#L807"><code>selections.copy.above</code></a></td><td>Copy selections above</td><td><code>Shift+Alt+C</code> (<code>editorTextFocus && dance.mode == 'normal'</code>)<code>Shift+Alt+C</code> (<code>editorTextFocus && dance.mode == 'visual'</code>)</td></tr>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are supposed to be correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant