add a few additional motions to be parsed by yank
This commit is contained in:
@@ -268,6 +268,8 @@ struct
|
|||||||
let val f = fn (buffer, cursorIdx, _) => Cursor.vi0 (buffer, cursorIdx)
|
let val f = fn (buffer, cursorIdx, _) => Cursor.vi0 (buffer, cursorIdx)
|
||||||
in yankWhenMovingBack (app, f, 1)
|
in yankWhenMovingBack (app, f, 1)
|
||||||
end
|
end
|
||||||
|
| #"w" => yankWhenMovingForward (app, Cursor.nextWord, count)
|
||||||
|
| #"W" => yankWhenMovingForward (app, Cursor.nextWORD, count)
|
||||||
| _ => app
|
| _ => app
|
||||||
|
|
||||||
fun parseYank (strPos, str, count, app, chrCmd, time) =
|
fun parseYank (strPos, str, count, app, chrCmd, time) =
|
||||||
|
|||||||
@@ -231,9 +231,8 @@ struct
|
|||||||
fun yank (shellState: t, str) =
|
fun yank (shellState: t, str) =
|
||||||
let
|
let
|
||||||
(* print when text is yanked *)
|
(* print when text is yanked *)
|
||||||
val msg = String.toCString str
|
val msg = "|" ^ String.toCString str ^ "|\n"
|
||||||
val () = print msg
|
val () = print msg
|
||||||
val () = print "\n"
|
|
||||||
val () = Glfw.setClipboardString (#window shellState, str)
|
val () = Glfw.setClipboardString (#window shellState, str)
|
||||||
in
|
in
|
||||||
shellState
|
shellState
|
||||||
|
|||||||
Reference in New Issue
Block a user