mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-02 07:06:41 +03:00
Ctrl l and x
This commit is contained in:
parent
bfe92ba33e
commit
0541daf61a
@ -3,7 +3,7 @@
|
|||||||
:::: /hook/core/shell/app
|
:::: /hook/core/shell/app
|
||||||
::
|
::
|
||||||
/? 314
|
/? 314
|
||||||
/- term-line
|
/- term-line, kyev
|
||||||
/= pit /~ !>(.) :: kernel vase
|
/= pit /~ !>(.) :: kernel vase
|
||||||
::
|
::
|
||||||
:::: structures
|
:::: structures
|
||||||
@ -77,7 +77,7 @@
|
|||||||
++ parse
|
++ parse
|
||||||
^- $+(nail (like coma))
|
^- $+(nail (like coma))
|
||||||
=+ paf=pax
|
=+ paf=pax
|
||||||
=. pax ?.(=('0' &3.pax) pax pax(&3 (scot da/lat)))
|
=. pax ?.(&(?=([@ @ @ *] pax) =('0' &3.pax)) pax pax(&3 (scot da/lat)))
|
||||||
;~ pose
|
;~ pose
|
||||||
(stag %run ;~(plug (star ;~(sfix (comd(tol %0) bar) ace)) (comd col)))
|
(stag %run ;~(plug (star ;~(sfix (comd(tol %0) bar) ace)) (comd col)))
|
||||||
(stag %end ;~(pfix sem ;~(pose (stag %& dem) (stag %| sym))))
|
(stag %end ;~(pfix sem ;~(pose (stag %& dem) (stag %| sym))))
|
||||||
@ -138,6 +138,11 @@
|
|||||||
~
|
~
|
||||||
(some i.t.a)
|
(some i.t.a)
|
||||||
::
|
::
|
||||||
|
++ poke-kyev
|
||||||
|
|= [ost=bone you=ship key=kyev]
|
||||||
|
?> ?=([[%ctrl ~ ~] @t] key)
|
||||||
|
(poke-txt ost you (cat 3 '\\' q.key))
|
||||||
|
::
|
||||||
++ poke-txt
|
++ poke-txt
|
||||||
|= [ost=bone you=ship txt=cord]
|
|= [ost=bone you=ship txt=cord]
|
||||||
^- [(list move) _+>]
|
^- [(list move) _+>]
|
||||||
@ -304,7 +309,7 @@
|
|||||||
^- @t
|
^- @t
|
||||||
?^ act
|
?^ act
|
||||||
(rap 3 (~(got by cub.hid) u.act) '(' u.act ') ' ~)
|
(rap 3 (~(got by cub.hid) u.act) '(' u.act ') ' ~)
|
||||||
?. =('0' &3.pax)
|
?. &(?=([@ @ @ *] pax) =('0' &3.pax))
|
||||||
(spat pax)
|
(spat pax)
|
||||||
(rap 3 '/' &1.pax '/' &2.pax '=' ?~(|3.pax ~ [(spat |3.pax)]~))
|
(rap 3 '/' &1.pax '/' &2.pax '=' ?~(|3.pax ~ [(spat |3.pax)]~))
|
||||||
++ exec
|
++ exec
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
:::: /hook/core/terminal/app
|
:::: /hook/core/terminal/app
|
||||||
::
|
::
|
||||||
/? 314 :: need urbit 314
|
/? 314 :: need urbit 314
|
||||||
/- term-line
|
/- term-line, kyev
|
||||||
::
|
::
|
||||||
:::: structures
|
:::: structures
|
||||||
::
|
::
|
||||||
@ -31,7 +31,7 @@
|
|||||||
$% [%cide p=span] ::
|
$% [%cide p=span] ::
|
||||||
[%show p=hapt q=ship r=path] ::
|
[%show p=hapt q=ship r=path] ::
|
||||||
[%sire p=term q=span] ::
|
[%sire p=term q=span] ::
|
||||||
[%mess p=hapt q=ship r=[%txt vase]] ::
|
[%mess p=hapt q=ship r=[?(%txt %kyev) vase]] ::
|
||||||
== == == ::
|
== == == ::
|
||||||
++ sign ::
|
++ sign ::
|
||||||
$% $: %g ::
|
$% $: %g ::
|
||||||
@ -66,6 +66,7 @@
|
|||||||
;title: Hi
|
;title: Hi
|
||||||
;script(src "/gen/main/lib/urb.js");
|
;script(src "/gen/main/lib/urb.js");
|
||||||
;script(src "//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js");
|
;script(src "//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js");
|
||||||
|
;script(src "//cdnjs.cloudflare.com/ajax/libs/mousetrap/1.4.6/mousetrap.js");
|
||||||
;script: urb.appl = "{(trip app.hid)}"
|
;script: urb.appl = "{(trip app.hid)}"
|
||||||
;script: urb.term = \{pax: "{(spud pax)}"}
|
;script: urb.term = \{pax: "{(spud pax)}"}
|
||||||
;script(src "//use.typekit.net/fkv0sjk.js");
|
;script(src "//use.typekit.net/fkv0sjk.js");
|
||||||
@ -113,12 +114,23 @@
|
|||||||
==
|
==
|
||||||
;body
|
;body
|
||||||
;pre#cont;
|
;pre#cont;
|
||||||
;span#prem:">" ;input#prom;
|
;span#prem:">" ;input.mousetrap#prom;
|
||||||
;br;
|
;br;
|
||||||
;button(onclick "jpok('res', 'shell')"): Reboot
|
;button(onclick "jpok('res', 'shell')"): Reboot
|
||||||
;script:'''
|
;script:'''
|
||||||
var hist = [], hind = 0;
|
var hist = [], hind = 0;
|
||||||
|
var keys = ['l', 'x']
|
||||||
|
for (i in keys) (function(k){
|
||||||
|
Mousetrap.bind('ctrl+' + k, function(){
|
||||||
|
console.log(k)
|
||||||
|
jpok('cmd', k)
|
||||||
|
})
|
||||||
|
})(keys[i])
|
||||||
$(prom).keydown(function(e){
|
$(prom).keydown(function(e){
|
||||||
|
//if(e. ==){
|
||||||
|
// jpok('act', e.which)
|
||||||
|
// return true
|
||||||
|
//}
|
||||||
switch(e.which){
|
switch(e.which){
|
||||||
default: return true
|
default: return true
|
||||||
break;
|
break;
|
||||||
@ -186,10 +198,13 @@
|
|||||||
|= [ost=bone you=ship jon=json]
|
|= [ost=bone you=ship jon=json]
|
||||||
^- [(list move) _+>]
|
^- [(list move) _+>]
|
||||||
::~& tem-poke/jon
|
::~& tem-poke/jon
|
||||||
=+ ^- [pax=path jof=$%([%line p=span] [%res p=span])]
|
=+ ^- [pax=path jof=$%([%line p=span] [%res p=span] [%cmd p=span])]
|
||||||
%- need
|
%- need
|
||||||
%. jon
|
%. jon => jo
|
||||||
(ot pax/(su ;~(pfix fas (more fas sym))) act/(of line/so res/so ~) ~):jo
|
%^ ot
|
||||||
|
pax/(su ;~(pfix fas (more fas sym)))
|
||||||
|
act/(of line/so res/so cmd/so ~)
|
||||||
|
~
|
||||||
=+ tel=(fall (~(get by hiz) pax) *term-line)
|
=+ tel=(fall (~(get by hiz) pax) *term-line)
|
||||||
?- -.jof
|
?- -.jof
|
||||||
%res
|
%res
|
||||||
@ -214,12 +229,18 @@
|
|||||||
=. r.tel :_(r.tel leaf/"{(trip p.tel)}> {(trip p.jof)}")
|
=. r.tel :_(r.tel leaf/"{(trip p.tel)}> {(trip p.jof)}")
|
||||||
=. hiz (~(put by hiz) pax tel)
|
=. hiz (~(put by hiz) pax tel)
|
||||||
:_ +>.$
|
:_ +>.$
|
||||||
%+ murn (~(tap by cub.hid))
|
(send ost you pax %txt !>(p.jof))
|
||||||
|= [p=span q=term]
|
%cmd
|
||||||
?. =(pax q:(decode p)) ~
|
:_ +>.$
|
||||||
%- some
|
(send ost you pax %kyev !>(`kyev`[[%ctrl ~ ~] p.jof]))
|
||||||
[ost %pass [%txt p pax] %g %mess [our.hid p imp.hid] you %txt !>(p.jof)]
|
|
||||||
==
|
==
|
||||||
|
++ send
|
||||||
|
|= [ost=bone you=ship pax=path mez=[?(%txt %kyev) vase]]
|
||||||
|
%+ murn (~(tap by cub.hid))
|
||||||
|
|= [p=span q=term]
|
||||||
|
?. =(pax q:(decode p)) ~
|
||||||
|
%- some ^- move
|
||||||
|
[ost %pass [%txt p pax] %g %mess [our.hid p imp.hid] you mez]
|
||||||
::
|
::
|
||||||
++ jell
|
++ jell
|
||||||
|= [a=bone b=path]
|
|= [a=bone b=path]
|
||||||
|
10
main/sur/kyev/gate.hook
Normal file
10
main/sur/kyev/gate.hook
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
:: Modified key event
|
||||||
|
::
|
||||||
|
:::: /hook/gate/kyev/sur
|
||||||
|
::
|
||||||
|
=- ,[p=(set ?(%ctrl %shift %alt %meta)) q=$|(cord [%act speck])]
|
||||||
|
^= speck
|
||||||
|
$? %ctrl %shift %alt %meta %entr %esc %caps %uncap
|
||||||
|
%pgup %pgdn %home %end %baxp %del %ins
|
||||||
|
%up %down %left %right
|
||||||
|
==
|
Loading…
Reference in New Issue
Block a user