mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Add o bind to move cursor to other end of selection
This commit is contained in:
parent
bebe694ebe
commit
426513327d
2 changed files with 3 additions and 0 deletions
|
@ -143,6 +143,7 @@ import * as urlutils from "@src/lib/url_util"
|
|||
import * as scrolling from "@src/content/scrolling"
|
||||
import * as R from "ramda"
|
||||
import * as locks from "@src/lib/locks"
|
||||
import * as visual from "@src/lib/visual"
|
||||
/* tslint:disable:import-spacing */
|
||||
; (window as any).tri = Object.assign(Object.create(null), {
|
||||
browserBg: webext.browserBg,
|
||||
|
@ -162,6 +163,7 @@ import * as locks from "@src/lib/locks"
|
|||
messaging,
|
||||
state,
|
||||
scrolling,
|
||||
visual,
|
||||
webext,
|
||||
l: prom => prom.then(console.log).catch(console.error),
|
||||
native,
|
||||
|
|
|
@ -348,6 +348,7 @@ export class default_config {
|
|||
"$": 'js document.getSelection().modify("extend","forward","lineboundary")',
|
||||
"0": 'js document.getSelection().modify("extend","backward","lineboundary")',
|
||||
"=": "js let n = document.getSelection().anchorNode.parentNode; let s = window.getSelection(); let r = document.createRange(); s.removeAllRanges(); r.selectNodeContents(n); s.addRange(r)",
|
||||
"o": "js tri.visual.reverseSelection(document.getSelection())",
|
||||
"🕷🕷INHERITS🕷🕷": "nmaps",
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue