com.raelity.jvi
Class Edit
java.lang.Object
com.raelity.jvi.Edit
public class Edit
- extends Object
Constructor Summary |
Edit()
|
Method Summary |
static void |
beginline(int flags)
NEEDSWORK:
This often follows an operation that get the segment,
and here we are getting it again in BEGIN_LINE. |
static int |
beginlineColumnIndex(int flags,
TextUtil.MySegment txt)
Move cursor to start of line. |
static boolean |
canEdit(ViTextView tv,
ViBuffer buf,
int offset)
|
static int |
cursor_down(int n,
boolean upd_topline)
|
static int |
cursor_up(int n,
boolean upd_topline)
When TRUE: update topline. |
static int |
oneleft()
|
static int |
oneright()
oneright oneleft cursor_down cursor_up
Move one char {right,left,down,up}. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VI_MODE_COMMAND
public static final String VI_MODE_COMMAND
- See Also:
- Constant Field Values
VI_MODE_INSERT
public static final String VI_MODE_INSERT
- See Also:
- Constant Field Values
VI_MODE_REPLACE
public static final String VI_MODE_REPLACE
- See Also:
- Constant Field Values
VI_MODE_VREPLACE
public static final String VI_MODE_VREPLACE
- See Also:
- Constant Field Values
VI_MODE_RESTART_I
public static final String VI_MODE_RESTART_I
- See Also:
- Constant Field Values
VI_MODE_RESTART_R
public static final String VI_MODE_RESTART_R
- See Also:
- Constant Field Values
VI_MODE_RESTART_V
public static final String VI_MODE_RESTART_V
- See Also:
- Constant Field Values
VI_MODE_SELECT
public static final String VI_MODE_SELECT
- See Also:
- Constant Field Values
VI_MODE_VISUAL
public static final String VI_MODE_VISUAL
- See Also:
- Constant Field Values
VI_MODE_BLOCK
public static final String VI_MODE_BLOCK
- See Also:
- Constant Field Values
VI_MODE_LINE
public static final String VI_MODE_LINE
- See Also:
- Constant Field Values
Edit
public Edit()
canEdit
public static boolean canEdit(ViTextView tv,
ViBuffer buf,
int offset)
beginlineColumnIndex
public static final int beginlineColumnIndex(int flags,
TextUtil.MySegment txt)
- Move cursor to start of line.
- if flags & BL_WHITE move to first non-white
- if flags & BL_SOL move to first non-white if startofline is set,
otherwise keep "curswant" column
- if flags & BL_FIX don't leave the cursor on a NUL.
NEEDSWORK:
- This belongs as part of the document since the Content and
hence the segment can not be accessed publicly, only protected.
beginline
public static final void beginline(int flags)
- NEEDSWORK:
- This often follows an operation that get the segment,
and here we are getting it again in BEGIN_LINE.
oneright
public static int oneright()
- oneright oneleft cursor_down cursor_up
Move one char {right,left,down,up}.
Return OK when successful, FAIL when we hit a line of file boundary.
oneleft
public static int oneleft()
cursor_up
public static int cursor_up(int n,
boolean upd_topline)
- When TRUE: update topline.
cursor_down
public static int cursor_down(int n,
boolean upd_topline)
- Parameters:
n
- the number of lines to moveupd_topline
- When TRUE: update topline.