[vi-mode] Support di' and di" commands

Open
#3,790 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
58/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp, powershell
Domain
cli

Research direction

Start by reviewing the text-object key-chord groundwork in pull request #3853 and the existing vi-mode keybindings. Add support for di' and di" so quoted text is deleted, then verify both commands behave as described.

Written by the indexing model from the issue text.

Description

In-PR Issue-Enhancement VI-Mode
Prerequisites
  • Write a descriptive title.
Description of the new feature/enhancement

As alluded to in #584, PSRL should support vim "text-objects".
Consider supporting the di' and di" commands to delete quoted text.

Proposed technical implementation details (optional)

Most of the ground work ground work done to support Text Objects with respect to key chords has already been laid. This feature will be very easy to implement and only involves wiring a couple of new keybindings.

Dominant language
C#
Stars
4.4k
Forks
341
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PowerShell/PSReadLine

All issues in PowerShell/PSReadLine

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.