mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-08-14 17:17:07 +02:00
Changes to deal with case insensitive operating systems.
This commit is contained in:
@@ -25,6 +25,7 @@ Bug Fixes
|
||||
- The commands c% and d% where not removing the closing match as expected.
|
||||
- The d{motion} command now becomes linewise when the motion covers more than
|
||||
one line and the is just whitespace before the start and after the end.
|
||||
- Renamed some source files to avoid problems on case insensitive platforms.
|
||||
|
||||
0.3.0 to 0.3.1
|
||||
|
||||
|
@@ -55,13 +55,13 @@
|
||||
<action id="VimMotionCamelRight" class="com.maddyhome.idea.vim.action.motion.text.MotionCamelRightAction" text="Camel Word Right"/>
|
||||
<action id="VimMotionNthCharacter" class="com.maddyhome.idea.vim.action.motion.text.MotionNthCharacterAction" text="Nth Character"/>
|
||||
<action id="VimMotionWordEndLeft" class="com.maddyhome.idea.vim.action.motion.text.MotionWordEndLeftAction" text="Word End Left"/>
|
||||
<action id="VimMotionWORDEndLeft" class="com.maddyhome.idea.vim.action.motion.text.MotionWORDEndLeftAction" text="WORD End Left"/>
|
||||
<action id="VimMotionBigWordEndLeft" class="com.maddyhome.idea.vim.action.motion.text.MotionBigWordEndLeftAction" text="BigWord End Left"/>
|
||||
<action id="VimMotionWordEndRight" class="com.maddyhome.idea.vim.action.motion.text.MotionWordEndRightAction" text="Word End Right"/>
|
||||
<action id="VimMotionWORDEndRight" class="com.maddyhome.idea.vim.action.motion.text.MotionWORDEndRightAction" text="WORD End Right"/>
|
||||
<action id="VimMotionBigWordEndRight" class="com.maddyhome.idea.vim.action.motion.text.MotionBigWordEndRightAction" text="BigWord End Right"/>
|
||||
<action id="VimMotionWordLeft" class="com.maddyhome.idea.vim.action.motion.text.MotionWordLeftAction" text="Word Left"/>
|
||||
<action id="VimMotionWORDLeft" class="com.maddyhome.idea.vim.action.motion.text.MotionWORDLeftAction" text="WORD Left"/>
|
||||
<action id="VimMotionBigWordLeft" class="com.maddyhome.idea.vim.action.motion.text.MotionBigWordLeftAction" text="BigWord Left"/>
|
||||
<action id="VimMotionWordRight" class="com.maddyhome.idea.vim.action.motion.text.MotionWordRightAction" text="Word Right"/>
|
||||
<action id="VimMotionWORDRight" class="com.maddyhome.idea.vim.action.motion.text.MotionWORDRightAction" text="WORD Right"/>
|
||||
<action id="VimMotionBigWordRight" class="com.maddyhome.idea.vim.action.motion.text.MotionBigWordRightAction" text="BigWord Right"/>
|
||||
<!-- Marks -->
|
||||
<action id="VimMotionMark" class="com.maddyhome.idea.vim.action.motion.mark.MotionMarkAction" text="Mark"/>
|
||||
<action id="VimMotionGotoFileMark" class="com.maddyhome.idea.vim.action.motion.mark.MotionGotoFileMarkAction" text="Goto Mark"/>
|
||||
|
@@ -20,14 +20,14 @@ package com.maddyhome.idea.vim.action.motion.text;
|
||||
*/
|
||||
|
||||
import com.maddyhome.idea.vim.action.motion.MotionEditorAction;
|
||||
import com.maddyhome.idea.vim.handler.motion.text.MotionWORDLeftHandler;
|
||||
import com.maddyhome.idea.vim.handler.motion.text.MotionBigWordEndLeftHandler;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class MotionWORDLeftAction extends MotionEditorAction
|
||||
public class MotionBigWordEndLeftAction extends MotionEditorAction
|
||||
{
|
||||
public MotionWORDLeftAction()
|
||||
public MotionBigWordEndLeftAction()
|
||||
{
|
||||
super(new MotionWORDLeftHandler());
|
||||
super(new MotionBigWordEndLeftHandler());
|
||||
}
|
||||
}
|
@@ -20,14 +20,14 @@ package com.maddyhome.idea.vim.action.motion.text;
|
||||
*/
|
||||
|
||||
import com.maddyhome.idea.vim.action.motion.MotionEditorAction;
|
||||
import com.maddyhome.idea.vim.handler.motion.text.MotionWORDRightHandler;
|
||||
import com.maddyhome.idea.vim.handler.motion.text.MotionBigWordEndRightHandler;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class MotionWORDRightAction extends MotionEditorAction
|
||||
public class MotionBigWordEndRightAction extends MotionEditorAction
|
||||
{
|
||||
public MotionWORDRightAction()
|
||||
public MotionBigWordEndRightAction()
|
||||
{
|
||||
super(new MotionWORDRightHandler());
|
||||
super(new MotionBigWordEndRightHandler());
|
||||
}
|
||||
}
|
@@ -20,14 +20,14 @@ package com.maddyhome.idea.vim.action.motion.text;
|
||||
*/
|
||||
|
||||
import com.maddyhome.idea.vim.action.motion.MotionEditorAction;
|
||||
import com.maddyhome.idea.vim.handler.motion.text.MotionWORDEndLeftHandler;
|
||||
import com.maddyhome.idea.vim.handler.motion.text.MotionBigWordLeftHandler;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class MotionWORDEndLeftAction extends MotionEditorAction
|
||||
public class MotionBigWordLeftAction extends MotionEditorAction
|
||||
{
|
||||
public MotionWORDEndLeftAction()
|
||||
public MotionBigWordLeftAction()
|
||||
{
|
||||
super(new MotionWORDEndLeftHandler());
|
||||
super(new MotionBigWordLeftHandler());
|
||||
}
|
||||
}
|
@@ -20,14 +20,14 @@ package com.maddyhome.idea.vim.action.motion.text;
|
||||
*/
|
||||
|
||||
import com.maddyhome.idea.vim.action.motion.MotionEditorAction;
|
||||
import com.maddyhome.idea.vim.handler.motion.text.MotionWORDEndRightHandler;
|
||||
import com.maddyhome.idea.vim.handler.motion.text.MotionBigWordRightHandler;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class MotionWORDEndRightAction extends MotionEditorAction
|
||||
public class MotionBigWordRightAction extends MotionEditorAction
|
||||
{
|
||||
public MotionWORDEndRightAction()
|
||||
public MotionBigWordRightAction()
|
||||
{
|
||||
super(new MotionWORDEndRightHandler());
|
||||
super(new MotionBigWordRightHandler());
|
||||
}
|
||||
}
|
@@ -54,6 +54,7 @@ import javax.swing.KeyStroke;
|
||||
|
||||
/**
|
||||
* Provides all the insert/replace related functionality
|
||||
* TODO - change cursor for the different modes
|
||||
*/
|
||||
public class ChangeGroup extends AbstractActionGroup
|
||||
{
|
||||
|
@@ -31,6 +31,6 @@ public class DeleteMotionHandler extends ChangeEditorActionHandler
|
||||
{
|
||||
public boolean execute(Editor editor, DataContext context, int count, int rawCount, Argument argument)
|
||||
{
|
||||
return CommandGroups.getInstance().getChange().deleteMotion(editor, context, count, rawCount, argument);
|
||||
return CommandGroups.getInstance().getChange().deleteMotion(editor, context, count, rawCount, argument, false);
|
||||
}
|
||||
}
|
||||
|
@@ -27,7 +27,7 @@ import com.maddyhome.idea.vim.handler.motion.MotionEditorActionHandler;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class MotionWORDEndLeftHandler extends MotionEditorActionHandler
|
||||
public class MotionBigWordEndLeftHandler extends MotionEditorActionHandler
|
||||
{
|
||||
public int getOffset(Editor editor, DataContext context, int count, int rawCount, Argument argument)
|
||||
{
|
@@ -27,7 +27,7 @@ import com.maddyhome.idea.vim.handler.motion.MotionEditorActionHandler;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class MotionWORDEndRightHandler extends MotionEditorActionHandler
|
||||
public class MotionBigWordEndRightHandler extends MotionEditorActionHandler
|
||||
{
|
||||
public int getOffset(Editor editor, DataContext context, int count, int rawCount, Argument argument)
|
||||
{
|
@@ -27,7 +27,7 @@ import com.maddyhome.idea.vim.handler.motion.MotionEditorActionHandler;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class MotionWORDLeftHandler extends MotionEditorActionHandler
|
||||
public class MotionBigWordLeftHandler extends MotionEditorActionHandler
|
||||
{
|
||||
public int getOffset(Editor editor, DataContext context, int count, int rawCount, Argument argument)
|
||||
{
|
@@ -27,7 +27,7 @@ import com.maddyhome.idea.vim.handler.motion.MotionEditorActionHandler;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class MotionWORDRightHandler extends MotionEditorActionHandler
|
||||
public class MotionBigWordRightHandler extends MotionEditorActionHandler
|
||||
{
|
||||
public int getOffset(Editor editor, DataContext context, int count, int rawCount, Argument argument)
|
||||
{
|
@@ -584,15 +584,15 @@ public class RegisterActions
|
||||
new Shortcut('w'),
|
||||
new Shortcut(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, KeyEvent.SHIFT_MASK))
|
||||
});
|
||||
parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionWORDEndLeft", Command.MOTION, Command.FLAG_MOT_INCLUSIVE,
|
||||
parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionBigWordEndLeft", Command.MOTION, Command.FLAG_MOT_INCLUSIVE,
|
||||
new Shortcut("gE"));
|
||||
parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionWORDEndRight", Command.MOTION, Command.FLAG_MOT_INCLUSIVE,
|
||||
parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionBigWordEndRight", Command.MOTION, Command.FLAG_MOT_INCLUSIVE,
|
||||
new Shortcut('E'));
|
||||
parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionWORDLeft", Command.MOTION, Command.FLAG_MOT_EXCLUSIVE, new Shortcut[] {
|
||||
parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionBigWordLeft", Command.MOTION, Command.FLAG_MOT_EXCLUSIVE, new Shortcut[] {
|
||||
new Shortcut('B'),
|
||||
new Shortcut(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, KeyEvent.CTRL_MASK))
|
||||
});
|
||||
parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionWORDRight", Command.MOTION, Command.FLAG_MOT_EXCLUSIVE, new Shortcut[] {
|
||||
parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionBigWordRight", Command.MOTION, Command.FLAG_MOT_EXCLUSIVE, new Shortcut[] {
|
||||
new Shortcut('W'),
|
||||
new Shortcut(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, KeyEvent.CTRL_MASK))
|
||||
});
|
||||
|
Reference in New Issue
Block a user