Skip to content

Commit 81433aa

Browse files
committed
Correctly group text objects functions
1 parent bc11289 commit 81433aa

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

PSReadLine/KeyBindings.cs

+2
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ public static string GetGroupingDescription(KeyHandlerGroup grouping)
103103
return PSReadLineResources.SelectionGrouping;
104104
case KeyHandlerGroup.Search:
105105
return PSReadLineResources.SearchGrouping;
106+
case KeyHandlerGroup.TextObjects:
107+
return PSReadLineResources.TextObjectsGrouping;
106108
case KeyHandlerGroup.Custom:
107109
return PSReadLineResources.CustomGrouping;
108110
default: return "";

PSReadLine/PSReadLineResources.Designer.cs

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PSReadLine/PSReadLineResources.resx

+6
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,9 @@ If there are other parse errors, unresolved commands, or incorrect parameters, s
648648
<data name="ViReplaceGlobDescription" xml:space="preserve">
649649
<value>Delete to the beginning of the next word, as delimited by white space, and enter insert mode.</value>
650650
</data>
651+
<data name="ViDeleteInnerWordDescription" xml:space="preserve">
652+
<value>Delete the content inside and including the current word</value>
653+
</data>
651654
<data name="ViReplaceEndOfWordDescription" xml:space="preserve">
652655
<value>Delete to the end of the word, as delimited by white space and common delimiters, and enter insert mode.</value>
653656
</data>
@@ -801,6 +804,9 @@ Or not saving history with:
801804
<data name="SearchGrouping" xml:space="preserve">
802805
<value>Search functions</value>
803806
</data>
807+
<data name="TextObjectsGrouping" xml:space="preserve">
808+
<value>Text objects functions</value>
809+
</data>
804810
<data name="CustomGrouping" xml:space="preserve">
805811
<value>User defined functions</value>
806812
</data>

PSReadLine/TextObjects.Vi.cs

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ namespace Microsoft.PowerShell
44
{
55
public partial class PSConsoleReadLine
66
{
7+
/// <summary>
8+
/// Delete the content inside and including the current word
9+
/// </summary>
710
public static void ViDeleteInnerWord(ConsoleKeyInfo? key = null, object arg = null)
811
{
912
var delimiters = _singleton.Options.WordDelimiters;

0 commit comments

Comments
 (0)