-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrss.xml
1303 lines (1207 loc) · 234 KB
/
rss.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>心微憩</title>
<link>https://SlippyJimmy.github.io/</link>
<description>世界虽大,心惟于一隅独憩</description>
<generator>Hugo 0.139.4 https://gohugo.io/</generator>
<language>zh-CN</language>
<copyright>[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh)</copyright>
<lastBuildDate>Fri, 20 Dec 2024 14:35:39 +0800</lastBuildDate>
<atom:link rel="self" type="application/rss+xml" href="https://SlippyJimmy.github.io/rss.xml" />
<item>
<title>Kitty快捷键</title>
<link>https://SlippyJimmy.github.io/posts/kitty%E5%BF%AB%E6%8D%B7%E9%94%AE/</link>
<guid isPermaLink="true">https://SlippyJimmy.github.io/posts/kitty%E5%BF%AB%E6%8D%B7%E9%94%AE/</guid>
<pubDate>Sat, 07 Dec 2024 10:29:39 +0800</pubDate>
<copyright>[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh)</copyright>
<description><ul>
<li>kitty_mod ctrl+shift</li>
</ul>
<h2 id="clipboard"><a href="https://SlippyJimmy.github.io/posts/kitty%E5%BF%AB%E6%8D%B7%E9%94%AE/#clipboard" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>Clipboard</h2>
<pre tabindex="0"><code>map kitty_mod+c copy_to_clipboard
map kitty_mod+v paste_from_clipboard
map kitty_mod+s paste_from_selection
map shift+insert paste_from_selection
map kitty_mod+o pass_selection_to_program
</code></pre><h2 id="scrolling"><a href="https://SlippyJimmy.github.io/posts/kitty%E5%BF%AB%E6%8D%B7%E9%94%AE/#scrolling" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>Scrolling</h2>
<pre tabindex="0"><code>map kitty_mod+up scroll_line_up
map kitty_mod+k scroll_line_up
map kitty_mod+down scroll_line_down
map kitty_mod+j scroll_line_down
map kitty_mod+page_up scroll_page_up
map kitty_mod+page_down scroll_page_down
map kitty_mod+home scroll_home
map kitty_mod+end scroll_end
map kitty_mod+h show_scrollback
</code></pre><h2 id="window"><a href="https://SlippyJimmy.github.io/posts/kitty%E5%BF%AB%E6%8D%B7%E9%94%AE/#window" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>Window</h2>
<pre tabindex="0"><code>map kitty_mod+enter new_window
map kitty_mod+n new_os_window
map kitty_mod+w close_window
map kitty_mod+] next_window
map kitty_mod+[ previous_window
map kitty_mod+f move_window_forward
map kitty_mod+b move_window_backward
map kitty_mod+` move_window_to_top
map kitty_mod+r start_resizing_window
map kitty_mod+1 first_window
map kitty_mod+2 second_window
map kitty_mod+3 third_window
map kitty_mod+4 fourth_window
map kitty_mod+5 fifth_window
map kitty_mod+6 sixth_window
map kitty_mod+7 seventh_window
map kitty_mod+8 eighth_window
map kitty_mod+9 ninth_window
map kitty_mod+0 tenth_window
</code></pre><h2 id="tab-management"><a href="https://SlippyJimmy.github.io/posts/kitty%E5%BF%AB%E6%8D%B7%E9%94%AE/#tab-management" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>Tab management</h2>
<pre tabindex="0"><code>map kitty_mod+right next_tab
map kitty_mod+left previous_tab
map kitty_mod+t new_tab
map kitty_mod+q close_tab
map kitty_mod+. move_tab_forward
map kitty_mod+, move_tab_backward
map kitty_mod+alt+t set_tab_title
</code></pre><h2 id="layout-management"><a href="https://SlippyJimmy.github.io/posts/kitty%E5%BF%AB%E6%8D%B7%E9%94%AE/#layout-management" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>Layout management</h2>
<pre tabindex="0"><code>map kitty_mod+l next_layout
</code></pre><h2 id="font-sizes"><a href="https://SlippyJimmy.github.io/posts/kitty%E5%BF%AB%E6%8D%B7%E9%94%AE/#font-sizes" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>Font sizes</h2>
<pre tabindex="0"><code>map kitty_mod+equal change_font_size all +2.0
map kitty_mod+minus change_font_size all -2.0
map kitty_mod+backspace change_font_size all 0
</code></pre><h2 id="select-and-act-on-visible-text"><a href="https://SlippyJimmy.github.io/posts/kitty%E5%BF%AB%E6%8D%B7%E9%94%AE/#select-and-act-on-visible-text" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>Select and act on visible text</h2>
<pre tabindex="0"><code>map kitty_mod+e // 在terminal中选择并打开url网页链接 #Open a currently visible URL using the keyboard. The program used to open the URL is specified in open_url_with.
map kitty_mod+p&gt;f // 在terminal中选择路径或者文件名,将其输入到terminal中.Select a path/filename and insert it into the terminal. Useful, forinstance to run git commands on a filename output from a previous git command.
map kitty_mod+p&gt;shift+f // Select a path/filename and open it with the default open program.
map kitty_mod+p&gt;l // Select a line of text and insert it into the terminal. Use for the output of things like: ls -1
map kitty_mod+p&gt;w // Select words and insert into terminal.
map kitty_mod+p&gt;h // Select something that looks like a hash and insert it into the terminal. Useful with git, which uses sha1 hashes to identify commits
map kitty_mod+p&gt;n // Select something that looks like filename:linenum and open it in vim at the specified line number.
</code></pre><h2 id="miscellaneous"><a href="https://SlippyJimmy.github.io/posts/kitty%E5%BF%AB%E6%8D%B7%E9%94%AE/#miscellaneous" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>Miscellaneous</h2>
<pre tabindex="0"><code>map kitty_mod+f11 toggle_fullscreen
map kitty_mod+f10 toggle_maximized
map kitty_mod+u kitten unicode_input
map kitty_mod+f2 edit_config_file
map kitty_mod+escape kitty_shell window // Open the kitty shell in a new window/tab/overlay/os_window to control kitty using commands.
map kitty_mod+a&gt;m set_background_opacity +0.1
map kitty_mod+a&gt;l set_background_opacity -0.1
map kitty_mod+a&gt;1 set_background_opacity 1
map kitty_mod+a&gt;d set_background_opacity default
map kitty_mod+delete clear_terminal reset active
</code></pre></description>
</item>
<item>
<title>华硕FX50JX黑苹果Vertura13.5.1系统安装完善踩坑记录</title>
<link>https://SlippyJimmy.github.io/posts/%E5%8D%8E%E7%A1%95fx50jx%E9%BB%91%E8%8B%B9%E6%9E%9Cvertura13.5.1%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E5%AE%8C%E5%96%84%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/</link>
<guid isPermaLink="true">https://SlippyJimmy.github.io/posts/%E5%8D%8E%E7%A1%95fx50jx%E9%BB%91%E8%8B%B9%E6%9E%9Cvertura13.5.1%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E5%AE%8C%E5%96%84%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/</guid>
<pubDate>Wed, 06 Sep 2023 10:35:46 +0800</pubDate>
<copyright>[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh)</copyright>
<description><h2 id="电脑配置"><a href="https://SlippyJimmy.github.io/posts/%E5%8D%8E%E7%A1%95fx50jx%E9%BB%91%E8%8B%B9%E6%9E%9Cvertura13.5.1%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E5%AE%8C%E5%96%84%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/#电脑配置" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>电脑配置</h2>
<ul>
<li>CPU Intel i5 4200H</li>
<li>显卡:
<ul>
<li>集显:HD4600</li>
<li>独显:NVIDIA 950M(不可用)</li>
</ul>
</li>
<li>内存:板载Samsung 4G DDR3 1333MHz + KingSton 4GB DDR3 1333MHz</li>
<li>硬盘:Intel 545S 256G SSD</li>
<li>网卡:原装蓝牙不可用,更换为BCM943225HMB</li>
</ul>
<h3 id="正常工作"><a href="https://SlippyJimmy.github.io/posts/%E5%8D%8E%E7%A1%95fx50jx%E9%BB%91%E8%8B%B9%E6%9E%9Cvertura13.5.1%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E5%AE%8C%E5%96%84%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/#正常工作" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>正常工作</h3>
<ul>
<li><input checked="" disabled="" type="checkbox"> 睡眠&amp;唤醒</li>
<li><input checked="" disabled="" type="checkbox"> 触摸板</li>
<li><input checked="" disabled="" type="checkbox"> Fn快捷键</li>
<li><input checked="" disabled="" type="checkbox"> CPU变频</li>
<li><input checked="" disabled="" type="checkbox"> 亮度调节</li>
<li><input checked="" disabled="" type="checkbox"> HDMI输出</li>
<li><input checked="" disabled="" type="checkbox"> WIFI&amp;蓝牙</li>
<li><input checked="" disabled="" type="checkbox"> 音频&amp;麦克风</li>
</ul>
<h2 id="参考配置"><a href="https://SlippyJimmy.github.io/posts/%E5%8D%8E%E7%A1%95fx50jx%E9%BB%91%E8%8B%B9%E6%9E%9Cvertura13.5.1%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E5%AE%8C%E5%96%84%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/#参考配置" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>参考配置</h2>
<p><a href="https://github.com/jonalinux/Hackintosh-Asus-X550JX" target="_blank" rel="noopener">参考EFI</a>
该EFI支持11-13系统,本人使用该EFI中的<code>EFI-ventura.zip</code>文件进行配置</p>
<p>优化后EFI下载地址:<a href="https://github.com/SlippyJimmy/Asus-FX50JX-Hackintosh" target="_blank" rel="noopener">Asus-FX50JX-Hackintosh</a></p>
<h2 id="配置过程"><a href="https://SlippyJimmy.github.io/posts/%E5%8D%8E%E7%A1%95fx50jx%E9%BB%91%E8%8B%B9%E6%9E%9Cvertura13.5.1%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E5%AE%8C%E5%96%84%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/#配置过程" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>配置过程</h2>
<p>安装后,声卡、网卡蓝牙及核显驱动存在问题,下面逐一解决。</p>
<h4 id="使用工具"><a href="https://SlippyJimmy.github.io/posts/%E5%8D%8E%E7%A1%95fx50jx%E9%BB%91%E8%8B%B9%E6%9E%9Cvertura13.5.1%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E5%AE%8C%E5%96%84%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/#使用工具" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>使用工具</h4>
<p><strong>Hackintool、Kext Updater、PlistEditPro、OpenCore Configurator、CPU-S、opencore-patcher</strong></p>
<p><em>注:请选择和OC版本一致的OCC,本人OpenCore版本为0.6.1,使用OCC版本为2.10.0.0</em></p>
<h4 id="声卡驱动"><a href="https://SlippyJimmy.github.io/posts/%E5%8D%8E%E7%A1%95fx50jx%E9%BB%91%E8%8B%B9%E6%9E%9Cvertura13.5.1%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E5%AE%8C%E5%96%84%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/#声卡驱动" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>声卡驱动</h4>
<p><a href="https://github.com/jonalinux/Hackintosh-Asus-X550JX/tree/main" target="_blank" rel="noopener">参考教程</a>,使用Hackintool将<code>voodooHDA.kext</code>安装到<code>L / E (Library / Extensions)</code></p>
<h4 id="网卡蓝牙驱动"><a href="https://SlippyJimmy.github.io/posts/%E5%8D%8E%E7%A1%95fx50jx%E9%BB%91%E8%8B%B9%E6%9E%9Cvertura13.5.1%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E5%AE%8C%E5%96%84%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/#网卡蓝牙驱动" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>网卡&amp;蓝牙驱动</h4>
<p>若为原装网卡,可使用参考EFI自行测试,如果是更换了其他网卡,可参考下面教程进行驱动</p>
<p><a href="https://www.bilibili.com/video/BV1de4y1X7mp" target="_blank" rel="noopener">参考教程</a></p>
<p>目前网卡蓝牙可以驱动,显示支持隔空投送,但实现不了</p>
<h4 id="核显驱动"><a href="https://SlippyJimmy.github.io/posts/%E5%8D%8E%E7%A1%95fx50jx%E9%BB%91%E8%8B%B9%E6%9E%9Cvertura13.5.1%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E5%AE%8C%E5%96%84%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/#核显驱动" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>核显驱动</h4>
<p>问题描述:核显仅为7M,画面很卡</p>
<p><a href="http://imacos.top/2022/09/26/2310/" target="_blank" rel="noopener">参考教程</a></p>
<h4 id="cpu睿频"><a href="https://SlippyJimmy.github.io/posts/%E5%8D%8E%E7%A1%95fx50jx%E9%BB%91%E8%8B%B9%E6%9E%9Cvertura13.5.1%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E5%AE%8C%E5%96%84%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/#cpu睿频" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>CPU睿频</h4>
<p><a href="https://www.bilibili.com/video/BV143411F7aJ" target="_blank" rel="noopener">参考教程</a></p>
<h4 id="花屏"><a href="https://SlippyJimmy.github.io/posts/%E5%8D%8E%E7%A1%95fx50jx%E9%BB%91%E8%8B%B9%E6%9E%9Cvertura13.5.1%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E5%AE%8C%E5%96%84%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/#花屏" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>花屏</h4>
<p>问题描述:开机二阶段分裂成8个苹果,进入系统后花屏</p>
<p>解决方案:</p>
<ol>
<li>bios中打开CSM(会导致开机一阶段图标变大的问题)</li>
<li>自定义EDID(待尝试)</li>
</ol>
</description>
</item>
<item>
<title>开发环境搭建</title>
<link>https://SlippyJimmy.github.io/posts/%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/</link>
<guid isPermaLink="true">https://SlippyJimmy.github.io/posts/%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/</guid>
<pubDate>Thu, 15 Dec 2022 17:17:43 +0800</pubDate>
<copyright>[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh)</copyright>
<description><h1 id="开发环境搭建"><a href="https://SlippyJimmy.github.io/posts/%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/#开发环境搭建" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>开发环境搭建</h1>
<p>基于<a href="https://github.com/glepnir/dotfiles" target="_blank" rel="noopener">glepnir</a></p>
<h2 id="一安装前准备工作"><a href="https://SlippyJimmy.github.io/posts/%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/#一安装前准备工作" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>一、安装前准备工作</h2>
<ol>
<li>安装ClashX并配置科学上网</li>
<li>配置终端网络代理</li>
</ol>
<pre tabindex="0"><code>export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
</code></pre><h2 id="二安装dotfiles"><a href="https://SlippyJimmy.github.io/posts/%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/#二安装dotfiles" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>二、安装dotfiles</h2>
<ol>
<li>clone dotfiles并安装</li>
</ol>
<p><a href="https://github.com/SlippyJimmy/dotfiles" target="_blank" rel="noopener">mydotfiles</a></p>
</description>
</item>
<item>
<title>Markdown语法测试--以surfingkeys为例</title>
<link>https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/</link>
<guid isPermaLink="true">https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/</guid>
<pubDate>Wed, 01 Jan 2020 18:52:11 +0800</pubDate>
<copyright>[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh)</copyright>
<description><h1 id="surfingkeys----用-javascript-和键盘扩展你的-chrome"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#surfingkeys----用-javascript-和键盘扩展你的-chrome" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>Surfingkeys -- 用 javascript 和键盘扩展你的 chrome</h1>
<p><a href="https://github.com/brookhong/Surfingkeys/actions?query=workflow%3A%22Node+CI%22+branch%3Amaster" target="_blank" rel="noopener"><img src="https://github.com/brookhong/Surfingkeys/workflows/Node%20CI/badge.svg?branch=master" alt="Node CI"></a></p>
<p>Surfingkeys 和现有的一些插件一样,让你尽可能的通过键盘来使用 Chrome/Firefox 浏览器,比如跳转网页,上下左右滚屏。但不只是给 vim 用户使用,Surfingkeys 的基本特性是让你自己写一段 Javascript 脚本,然后通过<code>mapkey</code>映射到某些按键。之后当你按了那几个键以后,对应的 Javascript 脚本就会被执行。</p>
<p>Surfingkeys 的配置全部写在一段 javascript 中,很容易添加自己的映射按键。如:</p>
<pre><code>mapkey('&lt;Ctrl-y&gt;', 'Show me the money', function() {
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});
</code></pre>
<p>Surfingkeys 从 0.9.15 开始支持火狐(需要 57 以上的版本),但目前下面的功能在火狐下不工作:</p>
<ul>
<li>同步不同设备间的设置</li>
<li>代理设置</li>
<li>Markdown 预览</li>
</ul>
<p><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E9%85%8D%E7%BD%AE%E5%8F%82%E8%80%83">配置参考</a>.</p>
<p><a href="http://video.weibo.com/show?fid=1034:09ef299edbed112e9c0a66a18ffb3463" target="_blank" rel="noopener">演示</a></p>
<h3 id="目录"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#目录" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>目录</h3>
<ul>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E5%8A%9F%E8%83%BD%E7%89%B9%E6%80%A7">功能特性</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B">快速上手</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E6%89%93%E5%BC%80%E8%BF%9E%E6%8E%A5">打开连接</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#surfingkeys%E6%94%AF%E6%8C%81%E7%9A%84%E6%A8%A1%E5%BC%8F">Surfingkeys 支持的模式</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E6%90%9C%E7%B4%A2%E6%A0%8F">搜索栏</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E6%90%9C%E7%B4%A2%E9%80%89%E4%B8%AD%E6%96%87%E6%9C%AC">搜索选中文本</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E7%B1%BBvim%E6%A0%87%E7%A4%BA">类 vim 标示</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E5%88%87%E6%8D%A2%E6%A0%87%E7%AD%BE%E9%A1%B5">切换标签页</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E5%91%BD%E4%BB%A4">命令</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E9%A1%BA%E6%BB%91%E6%BB%9A%E5%8A%A8">顺滑滚动</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E4%BC%9A%E8%AF%9D%E7%AE%A1%E7%90%86">会话管理</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E5%89%8D%E7%BC%80%E6%95%B0%E5%AD%97%E5%8F%AF%E5%A4%9A%E6%AC%A1%E9%87%8D%E5%A4%8D%E7%9B%B8%E5%BA%94%E6%93%8D%E4%BD%9C">前缀数字可多次重复相应操作</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E5%BC%80%E5%85%B3%E7%83%AD%E9%94%AE">开关热键</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E4%BB%A3%E7%90%86%E8%AE%BE%E7%BD%AE">代理设置</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#vim%E7%BC%96%E8%BE%91%E5%99%A8%E6%88%96%E8%80%85emacs%E7%BC%96%E8%BE%91%E5%99%A8">VIM 编辑器或者 Emacs 编辑器</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E7%82%B9%E5%91%BD%E4%BB%A4%E9%87%8D%E5%A4%8D%E5%89%8D%E4%B8%80%E4%B8%AA%E6%93%8D%E4%BD%9C">点命令重复前一个操作</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#markdown%E9%A2%84%E8%A7%88">Markdown 预览</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E6%88%AA%E5%B1%8F">截屏</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#mermaid%E5%9B%BE%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8">mermaid 图形生成器</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#pdf%E9%98%85%E8%AF%BB%E5%99%A8">PDF 阅读器</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E9%85%8D%E7%BD%AE%E5%8F%82%E8%80%83">配置参考</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E7%BC%96%E8%AF%91">编译</a></li>
<li><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#license">License</a></li>
</ul>
<h2 id="功能特性"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#功能特性" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>功能特性</h2>
<ul>
<li>所有配置都用 javascript 描述,易于修改添加自己的按键。</li>
<li>一个大号光标,这样 visual mode 不会太痛苦。</li>
<li>搜索选中文本,在 normal mode 和 visual mode 都好用。</li>
<li>自动生成帮助信息。</li>
<li>在 visual mode 下,按<code>*</code> 可以搜索当前单词。</li>
<li>滚动操作(像<code>e</code> <code>d</code>上下翻页之类)可以在顶层页面工作,也可以在一个支持滚动的 DIV 中使用。</li>
<li>在一个有多个 frame 的页面中,<code>w</code>可以切换 frame。</li>
<li>会话管理。</li>
<li>一个多功能书签地址栏</li>
<li>前缀数字可多次重复相应操作</li>
<li>使用 VIM 编辑页面上各种输入框</li>
<li>点命令重复前一个操作</li>
<li><code>sm</code>预览 markdown</li>
<li><code>&lt;Ctrl-Alt-d&gt;</code>打开图形生成器</li>
<li>插入模式下的表情下拉选项</li>
<li>按键实时提示</li>
<li>所有按键对 PDF 适用</li>
</ul>
<h2 id="快速上手"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#快速上手" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>快速上手</h2>
<ul>
<li><a href="https://chrome.google.com/webstore/detail/surfingkeys/gfbliohnnapiefjpjlpjnehglfpaknnc" target="_blank" rel="noopener">Chrome 插件安装地址</a></li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/surfingkeys_ff/" target="_blank" rel="noopener">Firefox 插件安装地址</a></li>
</ul>
<p>安装本插件以后,打开你要访问的站点。先按<code>?</code>或者<code>u</code>看看帮助信息,按<code>Esc</code>可以关掉帮助信息。</p>
<p>试试帮助信息里的那些按键,比如,<code>e</code>向上翻页,<code>d</code>向下翻页,<code>se</code>打开设置。</p>
<ul>
<li><code>?</code> 显示帮助
<img src="https://cloud.githubusercontent.com/assets/288207/16181995/1417ca44-36d4-11e6-96c9-9e84b33f0916.png" alt="help"></li>
<li><code>t</code> 搜索收藏夹和访问历史
<img src="https://cloud.githubusercontent.com/assets/288207/16182031/58e15ec4-36d4-11e6-9cc5-ff35970df25f.png" alt="urls"></li>
<li><code>/</code> 在当前页查找
<img src="https://cloud.githubusercontent.com/assets/288207/16182044/65f4713c-36d4-11e6-9e21-6b61a858f080.png" alt="find"></li>
<li><code>f</code> 拨号打开链接
<img src="https://cloud.githubusercontent.com/assets/288207/16182118/18d27678-36d5-11e6-9759-d8b5ff49930c.png" alt="follow"></li>
<li><code>v</code> 切换文本选择模式
<img src="https://cloud.githubusercontent.com/assets/288207/16182120/1cc536da-36d5-11e6-9e08-293cdb8fbcd2.png" alt="visual"></li>
<li><code>T</code> 切换标签页
<img src="https://cloud.githubusercontent.com/assets/288207/10328839/f0143ffe-6ceb-11e5-8eee-962db94b2c22.png" alt="tabs"></li>
</ul>
<h2 id="打开连接"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#打开连接" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>打开连接</h2>
<p>默认的拨号键有<code>asdfgqwertzxcvb</code>,如果按了一个非拨号键,会自动退出拨号。下面的设置可以改成右手习惯:</p>
<pre><code>Hints.characters = 'yuiophjklnm'; // for right hand
</code></pre>
<p>当拨号盘有重叠上,可以按<code>Shift</code>翻转重叠的拨号盘。按住空格键可隐藏拨号盘,松开恢复。</p>
<p>所有拨号放在目标链接的中间,你可以用下面的设置让它们靠左对齐:</p>
<pre><code>settings.hintAlign = &quot;left&quot;;
</code></pre>
<h2 id="surfingkeys-支持的模式"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#surfingkeys-支持的模式" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>Surfingkeys 支持的模式</h2>
<p>Surfingkeys 有三种模式:normal,visual 和 insert。</p>
<h3 id="normal-mode默认模式"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#normal-mode默认模式" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>Normal mode,默认模式</h3>
<p>当你打开一个页面时,自动进入该模式。通过函数<code>mapkey</code>添加的所有按键都只在这种模式下有用。</p>
<h3 id="visual-mode用于选中文本以及各种针对选中文本的操作"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#visual-mode用于选中文本以及各种针对选中文本的操作" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>Visual mode,用于选中文本,以及各种针对选中文本的操作</h3>
<p>除了通过函数<code>vmapkey</code>添加的所有按键在这种模式下有用,此外还有一些内置类似 vim 的按键,如<code>j</code> <code>k</code> <code>h</code> <code>l</code> <code>b</code> <code>w``0</code> <code>$</code>等。</p>
<p>按<code>v</code>可以切换 visual mode。在 visual mode 下,你会在页面底部看到一个提示 -- <code>Caret</code>或者<code>Range</code>,页面中还有一个大号的光标。光标做得这么大,是让人在页面中好找到它。</p>
<p><code>Caret</code> 表明当你按 jkhl 时会移动光标,<code>Range</code>则表明你移动光标会选择文本。下面有个小练习:</p>
<ol>
<li>按下<code>v</code>,确认你能看到<code>Caret</code>提示和光标。</li>
<li>使用<code>j</code> <code>k</code> <code>h</code> <code>l</code> <code>b</code> <code>w``0</code> <code>$</code>试试移动光标。</li>
<li>再按下<code>v</code>,确认你看到<code>Range</code>提示。</li>
<li>使用<code>j</code> <code>k</code> <code>h</code> <code>l</code> <code>b</code> <code>w``0</code> <code>$</code>试试选中文本。</li>
<li>按下<code>sg</code>看看发生了什么。</li>
<li>再按下<code>v</code>回到 normal mode。</li>
</ol>
<p><img src="https://cloud.githubusercontent.com/assets/288207/17644215/759f1e70-61b3-11e6-8bf8-0bdff7d0c933.gif" alt="search_selected"></p>
<ul>
<li><code>zz</code> 让光标位于窗口中间行。</li>
<li><code>f</code> 往前查找下一个字符。</li>
<li><code>F</code> 往后查找下一个字符。</li>
<li><code>;</code> 重复最后的<code>f</code>/<code>F</code>操作。</li>
<li><code>,</code> 反向重复最后的<code>f</code>/<code>F</code>操作。</li>
</ul>
<h3 id="insert-mode"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#insert-mode" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>Insert mode</h3>
<p>当输入焦点定位到各类输入框时(无论你是通过<code>i</code>或<code>f</code>选择定位还是鼠标点击定位的),就进入该模式。
通过函数<code>imapkey</code>添加的所有按键都只在这种模式下有用。</p>
<ul>
<li><code>Ctrl - i</code> 打开 vim 编辑器。</li>
<li><code>Ctrl - '</code> 把输入框里的内容用双引号引起来或去除双引号,方便在搜索引擎页面上搜索时使用。</li>
<li><code>Ctrl-e</code>移动光标到行尾。</li>
<li><code>Ctrl-f</code> 移动光标到行首。</li>
<li><code>Ctrl-u</code> 删除光标前所有输入。</li>
<li><code>Alt-b</code> 移动光标到后一个词。</li>
<li><code>Alt-f</code> 移动光标到前一个词。</li>
<li><code>Alt-w</code> 往后删除一个词。</li>
<li><code>Alt-d</code> 往前删除一个词。</li>
</ul>
<p><code>imap</code> 和 <code>iunmap</code>:</p>
<pre><code>imap(',,', &quot;&lt;Esc&gt;&quot;); // 按两次逗号退出当前输入框。
imap(';;', &quot;&lt;Ctrl-'&gt;&quot;); // 按两次分号切换双引号。
</code></pre>
<h4 id="表情下拉选项"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#表情下拉选项" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>表情下拉选项</h4>
<p>当用户在插入模式下输入一个冒号跟着两个字符(2 是通过<code>settings.startToShowEmoji</code>设置的)时,如<code>:gr</code>,Surfingkeys 会列出相应的表情。</p>
<p><img src="https://cloud.githubusercontent.com/assets/288207/23602453/924ed762-028b-11e7-86f3-bf315c0a2499.gif" alt="emoji"></p>
<p>如果你不喜欢这个功能,可以用以下设置禁用:</p>
<pre><code>iunmap(&quot;:&quot;);
</code></pre>
<p>如果你希望按下冒号后立刻出现表情下拉选项,可以用以下设置:</p>
<pre><code>settings.startToShowEmoji = 0;
</code></pre>
<p><a href="https://github.com/brookhong/Surfingkeys/blob/master/pages/emoji.tsv" target="_blank" rel="noopener">表情符号完整列表</a></p>
<h3 id="查找"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#查找" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>查找</h3>
<p>查找不是模式,但是它会让你自动进入 visual mode. 按<code>/</code>打开查找栏,输入你要查找的文字,你会看到所有匹配的文字会被高亮。按回车完成查找,这时你会自动进入 visual mode -- <code>Caret</code>。按<code>n</code>定位下一个,<code>N</code>定位前一个。</p>
<p>按<code>Ctrl-Enter</code>查找完整的单词,就像输入<code>\bkeyword\b</code>一样。</p>
<h3 id="passthrough-mode"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#passthrough-mode" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>PassThrough mode</h3>
<p>按<code>Alt-i</code>进入 PassThrough 模式可让你暂时放弃 SurfingKeys,这时 SurfingKeys 所有按键不再有用,直到你按<code>Esc</code>退出 PassThrough 模式。在该模式下,你可以充分使用任何网站本身提供的快捷键。请参考<a href="https://github.com/brookhong/Surfingkeys/issues/656" target="_blank" rel="noopener">Feature Request: implement Vimium-style insert mode · Issue #656</a>了解为什么引入这种模式以及它与<code>Alt-s</code>的区别。</p>
<p>按<code>p</code>进入一个短暂的 PassThrough 模式,它在一秒后会自动退出。如果默认设置的 1 秒超时不适合你的情况,可以在你的设置脚本里这样写改为 1500 毫秒:</p>
<pre><code>mapkey('p', '#0enter ephemeral PassThrough mode to temporarily suppress SurfingKeys', function() {
Normal.passThrough(1500);
});
</code></pre>
<h2 id="搜索栏"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#搜索栏" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>搜索栏</h2>
<p>一些需要用户输入的功能通过搜索栏提供,比如</p>
<ul>
<li>用<code>t</code>打开网页(从收藏夹或访问历史)</li>
<li>用<code>b</code>打开收藏夹</li>
<li>用<code>og</code>/<code>ob</code>等打开搜索引擎</li>
<li>用<code>:</code>打开命令模式</li>
</ul>
<h3 id="搜索栏按键"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#搜索栏按键" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>搜索栏按键</h3>
<ul>
<li><code>Enter</code> 打开选中项并关闭搜索栏。</li>
<li><code>Ctrl-Enter</code> 打开选中项,但不关闭搜索栏,你可以继续选中打开。</li>
<li><code>Shift-Enter</code> 在当前标签页打开选中项并关闭搜索栏。如果你希望默认就在当前标签页打开,可以使用<code>go</code>。</li>
<li><code>Tab</code> 在结果列表中向下切换。</li>
<li><code>Shift-Tab</code> 在结果列表中向上切换。</li>
<li><code>Ctrl-.</code> 显示下一页搜索结果</li>
<li><code>Ctrl-,</code> 显示上一页搜索结果</li>
<li><code>Ctrl-c</code> 复制当前列出的结果</li>
</ul>
<p>用<code>t</code>打开搜索栏时,</p>
<p><code>Ctrl - d</code> 可以从收藏夹或访问历史中删除选中项。</p>
<p>用<code>b</code>打开搜索栏时,</p>
<p><code>Ctrl - Shift - &lt;any letter&gt;</code> 创建相应的类似 vim 标示。</p>
<p><img src="https://cloud.githubusercontent.com/assets/288207/17644214/759ef1d4-61b3-11e6-9bd9-70c38c8b80e0.gif" alt="search_engine"></p>
<p><code>cmap</code>用于搜索栏修改按键,如:</p>
<pre><code>cmap('&lt;Ctrl-n&gt;', '&lt;Tab&gt;');
cmap('&lt;Ctrl-p&gt;', '&lt;Shift-Tab&gt;');
</code></pre>
<h3 id="添加书签"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#添加书签" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>添加书签</h3>
<p><code>ab</code>可以把当前页加入书签。按<code>ab</code>后,搜索栏会弹出来让你选择放到哪个目录。如果你希望放到一个新建目录下面,可以输入新的目录名,<strong>并以<code>/</code>结尾</strong>,比如我选中了<code>/Bookmarks Bar/tool/</code>,然后在后面输入<code>abc/</code>,会把当前页加到<code>/Bookmarks Bar/tool/abc/</code>这个目录里。如果<code>abc</code>后面没有<code>/</code>,<code>abc</code>会被当作新建书签的标题保存。</p>
<h2 id="搜索选中文本"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#搜索选中文本" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>搜索选中文本</h2>
<p>从使用 Firefox 时起,我就必装的一个插件。无论 Firefox 还是 Chrome,我用的插件都是通过右键菜单来实现的。Surfingkeys 则通过按键来实现。默认情况下,当你在 normal mode 下按<code>sg</code>,Surfingkeys 会打开 google 搜索选中文本,如果没有文字被选中,则搜索系统剪贴板里面的文字。在 visual mode 下,它只会搜索选中文本。</p>
<p><code>sg</code>里面的<code>g</code>是个别名,用于 google,还有其他一些内置的别名,如<code>b</code>是百度的别名。这样当你按<code>sb</code>的时候就是使用百度来搜索选中文本。参考<a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#%E5%9C%A8%E6%90%9C%E7%B4%A2%E6%A0%8F%E9%87%8C%E6%B7%BB%E5%8A%A0%E6%90%9C%E7%B4%A2%E5%88%AB%E5%90%8D">在搜索栏里添加搜索别名</a>来添加你自己的搜索别名,尤其那些用于公司内部的搜索。</p>
<p>此外,还有<code>sog</code>可以使用 google 在本站搜索选中文本。在这个<code>sog</code>里面,<code>s</code>是 search_leader_key,<code>o</code>是 only_this_site_key,<code>g</code>是搜索别名。</p>
<p>search_leader_key(<code>s</code>)加上大写的别名(<code>G</code>)会打开搜索框让你可以修改添加搜索内容,再用 Google 搜索。其它别名和你通过<code>addSearchAliasX</code>添加的别名,大写的都可以这样工作。</p>
<h2 id="类-vim-标示"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#类-vim-标示" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>类 vim 标示</h2>
<p>简单说,vim 中的 marks 就是按<code>m</code>,然后跟一个字符(0-9 / a-z / A-Z),标示一下当前网址。之后,你随时按<code>'</code>跟上你定义的那个标示符,就会跳转到该网址。</p>
<p>除了<code>m</code>键创建标示外,你还可以从收藏夹里按住 Ctrl,加上标示符来创建。如下:</p>
<ol>
<li>按下<code>b</code>打开收藏夹。</li>
<li>随便输点啥,定位到你要标示的网址。</li>
<li>按住 Ctrl + Shift,加上你选中的标示符,比如<code>f</code>。</li>
</ol>
<p>之后,按<code>'F</code>就可以直接打开该网址来。</p>
<p>这个功能对那些你需要经常访问对网址很有用,两个键直达。<code>om</code>可以查看你已创建的标示。</p>
<h2 id="切换标签页"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#切换标签页" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>切换标签页</h2>
<p>默认情况下,按<code>T</code>会显示所有已打开标签页,然后按相应的提示键可以切到该标签页。</p>
<p><img src="https://cloud.githubusercontent.com/assets/288207/10544636/245447f6-7457-11e5-8372-62b8f6337158.png" alt="tabs_overlay"></p>
<p>这里有个设置<code>settings.tabsThreshold</code>,当然打开的标签页总数超过它时,再按空格就会使用搜索栏来选择标签。</p>
<p><img src="https://cloud.githubusercontent.com/assets/288207/10544630/1fbdd02c-7457-11e5-823c-14411311c315.png" alt="tabs_omnibar"></p>
<p>如果你希望一直用搜索栏来选择标签页,可使用如下设置:</p>
<pre><code>mapkey('&lt;Space&gt;', 'Choose a tab with omnibar', function() {
Front.openOmnibar({type: &quot;Tabs&quot;});
});
</code></pre>
<p>效果相当于:</p>
<pre><code>settings.tabsThreshold = 0;
</code></pre>
<p>无论是否在搜索栏里,标签页都按最近使用的顺序列出。如果你希望按标签页原本的顺序列出,可以设置:</p>
<pre><code>settings.tabsMRUOrder = false;
</code></pre>
<h2 id="命令"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#命令" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>命令</h2>
<p>用<code>:</code>打开搜索栏可用于执行命令,命令执行结果会显示在搜索栏下方。</p>
<pre><code>// 映射不同的按键到该命令,但采用不同的参数。
map('spa', ':setProxyMode always');
map('spb', ':setProxyMode byhost');
map('spd', ':setProxyMode direct');
</code></pre>
<p>除了命令,你还可以执行各类简单 js 代码。</p>
<p><img src="https://cloud.githubusercontent.com/assets/288207/11527801/fadee82c-991d-11e5-92e9-b054796a6a75.png" alt="commands_in_omnibar"></p>
<h2 id="顺滑滚动"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#顺滑滚动" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>顺滑滚动</h2>
<p>所有可以滚动的对象都默认支持顺滑滚动,如下可以关掉顺滑特性:</p>
<pre><code>settings.smoothScroll = false;
</code></pre>
<p><code>j</code>/<code>k</code> 按一步 70 像素的距离滚动,你可以定制步长:</p>
<pre><code>settings.scrollStepSize = 140;
</code></pre>
<h2 id="会话管理"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#会话管理" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>会话管理</h2>
<p>用 Surfingkeys 在 Chrome 里保存会话相当于保存所有标签页的地址,打开会话则相当于在不同的标签页中打开所有保存其中的网页地址,所以会话基本上就是一个网页地址列表,每个会话有自己的名字。</p>
<ul>
<li><code>ZZ</code>会保存所有当前标签页到一个名为<code>LAST</code>的会话,然后退出。</li>
<li><code>ZR</code>恢复名为<code>LAST</code>的会话。</li>
<li><code>ZQ</code>就只退出,不保存当前会话。</li>
</ul>
<p>你可以在命令模式下创建/管理多个不同名称的会话。按<code>:</code>打开命令窗口,然后输入:</p>
<pre><code>createSession works
</code></pre>
<p>就会创建一个名为<code>works</code>的会话,要打开该会话使用如下命令:</p>
<pre><code>openSession works
</code></pre>
<p>列出已保存的所有会话:</p>
<pre><code>listSession
</code></pre>
<p>删除某个会话:</p>
<pre><code>deleteSession works
</code></pre>
<h2 id="前缀数字可多次重复相应操作"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#前缀数字可多次重复相应操作" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>前缀数字可多次重复相应操作</h2>
<p>如果需要重复多次某个操作,可以在按该映射键之前按下相应的数字,比如<code>3d</code>,就会往下滚 3 页。这种方法同样适用于标签操作,比如,你现在在第一个标签页,你想切换到第四个标签页,</p>
<ul>
<li>按<code>3R</code>就可以</li>
<li><code>3E</code>会切回到第一个标签页</li>
</ul>
<p>另一个例子是移动标签页,假设你现在开着 23 个标签页,你在第 12 个,</p>
<ul>
<li><code>11&lt;&lt;</code> 就把当前标签页移到第一个</li>
<li><code>10&gt;&gt;</code> 则会把它移到最后一个</li>
</ul>
<p>通常情况,你不需要去数多少个标签页,如果你只是想移动到开头或者结尾的话,你按一个足够大的数字就可以,比如<code>99&lt;&lt;</code>。</p>
<h2 id="开关热键"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#开关热键" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>开关热键</h2>
<p>默认情况下,按<code>Alt-s</code>可以在当前站点开关 Surfingkeys。当 Surfingkeys 处于关闭状态时,除了热键,其它所有按键映射都停止工作。用如下设置修改热键:</p>
<pre><code>map('&lt;Ctrl-i&gt;', '&lt;Alt-s&gt;'); // 热键只能是一个按键,但可以带辅助按键,不能是`gg`这样的一串按键。
</code></pre>
<p>当 Surfingkeys 在某个网站被<code>Alt-s</code>关掉时,这个状态会被保存在设置里,如</p>
<pre><code>&quot;blacklist&quot;: {
&quot;https://github.com&quot;: 1
},
</code></pre>
<p>再按一次<code>Alt-s</code>会从 settings.blacklist 中删除该站点。这类状态并不保存在设置脚本里,你可以按<code>yj</code>把当前所有设置复制到系统剪贴板,然后粘贴到文本编辑器里查看。</p>
<p>另一个禁用 Surfingkeys 的方法是用<code>settings.blacklistPattern</code>,请参考<a href="https://github.com/brookhong/Surfingkeys/issues/63" target="_blank" rel="noopener">regex for disabling</a>.</p>
<h2 id="代理设置"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#代理设置" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>代理设置</h2>
<p>SwitchySharp 是个很好的代理管理插件,但我的用法很简单,</p>
<ol>
<li>创建一个使用 PAC 脚本的配置。</li>
<li>在 PAC 脚本里维护一个网站列表,如果当前所访问的站点在其中就使用代理。</li>
<li>当碰到一个站点是被墙的,就把这个网站加入列表。</li>
<li>然后点击 SwitchySharp 的图标重载配置。</li>
<li>有时也会点击图标在配置之间切换。</li>
</ol>
<p>其中需要手工编辑 PAC 脚本,鼠标点击 SwitchySharp 图片切换重载配置,因此我把代理设置的功能集成进来,并提供相关的命令和快捷键。</p>
<ul>
<li>
<p>setProxy, 设置代理,示例如下:</p>
<pre><code> setProxy 192.168.1.100:8080
setProxy 127.0.0.1:1080 SOCKS5
</code></pre>
</li>
<li>
<p>setProxyMode, 设置代理模式,有五种模式:direct, byhost, bypass, always, system 和 clear。</p>
<pre><code> direct Chrome不使用代理访问任何网站。
byhost Chrome只在访问你通过`addProxySite`命令添加过的网站时使用代理。你可以添加多条映射,让不同的网站使用不同的代理。
bypass Chrome使用代理访问所有网站,除了通过`addProxySite`命令添加过的网站。
always Chrome使用代理访问所有网站。
system Chrome使用操作系统设置的代理。
clear Surfingkeys不管代理,有其他插件管理,也就是禁用Surfingkeys的代理管理功能, 这是默认模式。
</code></pre>
</li>
<li>
<p>addProxySite, removeProxySite, toggleProxySite, 管理你需要通过代理访问的网站,比如:</p>
<pre><code> addProxySite google.com,facebook.com,twitter.com
</code></pre>
</li>
<li>
<p>proxyInfo, 列出你当前的代理设置,包括用以上命令设置的信息。</p>
</li>
<li>
<p><code>cp</code>, 切换当前站点的代理设置,即是否使用代理访问当前站点。</p>
</li>
<li>
<p><code>spa</code>, <code>:setProxyMode always</code>快捷键。</p>
</li>
<li>
<p><code>spb</code>, <code>:setProxyMode byhost</code>快捷键。</p>
</li>
<li>
<p><code>spc</code>, <code>:setProxyMode clear</code>快捷键。</p>
</li>
<li>
<p><code>spd</code>, <code>:setProxyMode direct</code>快捷键。</p>
</li>
<li>
<p><code>sps</code>, <code>:setProxyMode system</code>快捷键。</p>
</li>
<li>
<p><code>spi</code>, <code>:proxyInfo</code>快捷键。</p>
</li>
</ul>
<h2 id="vim-编辑器或者-emacs-编辑器"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#vim-编辑器或者-emacs-编辑器" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>VIM 编辑器或者 Emacs 编辑器</h2>
<p>Surfingkeys 集成了 ACE 里的 VIM 编辑器,用于:</p>
<ul>
<li>编辑网页上的各类文本输入框。</li>
<li>编辑 URL 并在新标签页打开</li>
<li>编辑设置</li>
</ul>
<p>你可以加上如下设置来使用 Emacs 按键:</p>
<pre><code>settings.aceKeybindings = &quot;emacs&quot;;
</code></pre>
<p>使用 Emacs 按键时,用<code>C-x C-s</code>来保存你的输入。</p>
<h3 id="编辑网页上的各类文本输入框"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#编辑网页上的各类文本输入框" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>编辑网页上的各类文本输入框</h3>
<p>在 Normal 模式,按大写的<code>I</code>,然后按相应的字母选择一个输入框。这时会打开一个 VIM 编辑器。对于单行输入框<code>input</code>和多行输入框<code>textarea</code>,打开的 VIM 编辑器会有点细微的不同。</p>
<p>对于单行输入框<code>input</code>,打开的 VIM 编辑器只有一行,你可以通过各类 VIM 按键编辑你的文本,按<code>Enter</code>或者<code>:w</code>就会把 VIM 编辑器里的内容写回相应的输入框。</p>
<p><img src="https://cloud.githubusercontent.com/assets/288207/17644219/75a72b2e-61b3-11e6-8ce2-06c9cc94aeca.gif" alt="input_with_vim"></p>
<p>对于多行输入框<code>textarea</code>,打开的 VIM 编辑器有多行,在你完成编辑之后,按<code>Ctrl-Enter</code>或者<code>:w</code>就会把 VIM 编辑器里的内容写回相应的输入框。</p>
<p><img src="https://cloud.githubusercontent.com/assets/288207/17644217/75a27e44-61b3-11e6-8f21-9cd79d3c5776.gif" alt="textarea_with_vim"></p>
<p>对于下拉列表<code>select</code>,打开的 VIM 编辑器有多行,但你不能编辑其中的文本,你只能搜索你需要的选项,跳到那一行,然后按<code>Enter</code>选中它。这对那种有几十个以上选项的下拉列表尤其有用。</p>
<p><img src="https://cloud.githubusercontent.com/assets/288207/17644218/75a458a4-61b3-11e6-8ce7-eedcc996745c.gif" alt="select_with_vim"></p>
<p>按键<code>Esc</code>或<code>:q</code>可退出 VIM 编辑器,不写回输入。</p>
<p><code>Tab</code>键可以从当前页面上搜索匹配的词组,然后按空格键补齐。</p>
<p>如果你是通过按键<code>i</code>或者鼠标点击进入一个输入框的,你可以正常修改输入框中的文本,也可以随时按<code>Ctrl-i</code>打开一个 VIM 编辑器。</p>
<p>记住在插入模式,按<code>Ctrl-i</code>打开 VIM 编辑器。</p>
<h3 id="编辑-url-并在新标签页打开"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#编辑-url-并在新标签页打开" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>编辑 URL 并在新标签页打开</h3>
<p><code>su</code>可以打开一个 VIM 编辑器来编辑当前 URL,然后按<code>Enter</code>或者<code>:w</code>就会打开编辑后的 URL,就像一个地址栏一样,但这是一个支持 vim 按键的地址栏。</p>
<p><code>Tab</code>键可以从书签和访问历史中搜索匹配的 URL,然后按空格键补齐。</p>
<p><img src="https://cloud.githubusercontent.com/assets/288207/17644220/75f8eedc-61b3-11e6-9630-da2250ac5f10.gif" alt="url_with_vim"></p>
<h3 id="编辑设置"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#编辑设置" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>编辑设置</h3>
<p><code>se</code>打开设置编辑器, <code>:w</code>保存设置。</p>
<h2 id="点命令重复前一个操作"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#点命令重复前一个操作" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>点命令重复前一个操作</h2>
<p><a href="https://github.com/brookhong/Surfingkeys/issues/67" target="_blank" rel="noopener">重复前一个操作</a></p>
<p>所有 normal 模式下的按键都可以由点来重复,除了那些在创建时指定<code>repeatIgnore</code>为<code>true</code>的按键,如</p>
<pre><code>mapkey('e', '#2Scroll a page up', function() {
Normal.scroll(&quot;pageUp&quot;);
}, {repeatIgnore: true});
</code></pre>
<p>这样,<code>.</code>就不会往上翻页,即使你刚刚按了<code>e</code>。</p>
<h2 id="markdown-预览"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#markdown-预览" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>Markdown 预览</h2>
<ol>
<li>复制 markdown 代码到系统剪贴板。</li>
<li><code>sm</code>预览剪贴板里的 markdown。</li>
<li>在预览页,再按<code>sm</code>会打开 vim 编辑器编辑 markdown。</li>
<li><code>:wq</code>刷新预览。</li>
<li><code>r</code>可以从系统剪贴板里重新加载 markdown.</li>
</ol>
<p><img src="https://cloud.githubusercontent.com/assets/288207/17669897/0b6fbaf6-6342-11e6-8583-86eb8691190d.gif" alt="markdown"></p>
<p>Surfingkeys 默认使用<a href="https://github.com/chjj/marked" target="_blank" rel="noopener">这个 markdown 分析器</a>,如果你想用<a href="https://developer.github.com/v3/markdown/" target="_blank" rel="noopener">github 提供的 API</a>,可以设置:</p>
<pre><code>settings.useLocalMarkdownAPI = false;
</code></pre>
<h2 id="截屏"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#截屏" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>截屏</h2>
<p>如果你需要截屏,下面这些按键用得上,尤其是当你想截长屏/或页面中某个可以滚动的 DIV 时。</p>
<ul>
<li><code>yg</code> 截当前页的屏。</li>
<li><code>yG</code> 滚动截完整页。</li>
<li><code>yS</code> 截当前滚动对象的屏。</li>
</ul>
<p>按完以上任一快捷键之后,会弹出你所截取的图片,然后你可以用鼠标(😢)右键单击图片来保存或者复制。</p>
<h2 id="mermaid-图形生成器"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#mermaid-图形生成器" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>mermaid 图形生成器</h2>
<p><a href="https://github.com/knsv/mermaid" target="_blank" rel="noopener">Mermaid</a> 是一个从文本生成各类图形如类图/时序图的工具。Surfingkeys 提供了一个页面,可以从系统剪贴板里读取文本并生成图形,并可以用 vim 编辑器编辑。</p>
<p>按<code>Ctrl-Alt-d</code>打开。</p>
<h2 id="pdf-阅读器"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#pdf-阅读器" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>PDF 阅读器</h2>
<p>为了支持 PDF 文件,Surfingkeys 集成了来自<a href="https://github.com/mozilla/pdf.js" target="_blank" rel="noopener">pdf.js</a>的 PDF 阅读器。当你用 Chrome 打开一个 PDF 文件时,这个 PDF 阅读器就会打开,这样所有 Surfingkeys 的按键都可以用了。</p>
<p>如果希望使用 Chrome 默认的 PDF 阅读器打开,可以按<code>;s</code>切换。</p>
<p>当你使用 Chrome 默认 PDF 阅读器时,有些按键还是可用的,但部分按键比如滚动/可视模式下的按键就不可用了。</p>
<h2 id="配置参考"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#配置参考" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>配置参考</h2>
<h3 id="添加一个按键映射"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#添加一个按键映射" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>添加一个按键映射</h3>
<pre><code>mapkey(keystroke, help_string, action_code, [options])
</code></pre>
<div class="table-container"><table>
<thead>
<tr>
<th style="text-align: left">参数</th>
<th style="text-align: left">含义</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left"><strong>keystroke</strong></td>
<td style="text-align: left">字符串,触发某个操作的按键</td>
</tr>
<tr>
<td style="text-align: left"><strong>help_string</strong></td>
<td style="text-align: left">字符串,帮助描述,会自动出现在<code>u</code>打开的帮助小窗里。</td>
</tr>
<tr>
<td style="text-align: left"><strong>action_code</strong></td>
<td style="text-align: left">函数,一个 Javascript 函数。如果该函数需要一个参数,下一个按键会作为参数传给这个函数。</td>
</tr>
<tr>
<td style="text-align: left"><strong>options</strong></td>
<td style="text-align: left">object, 字段属性如下</td>
</tr>
<tr>
<td style="text-align: left"><strong>domain</strong></td>
<td style="text-align: left">正则表达式[可选],表明只有当域名匹配时,该按键映射才会生效。比如,<code>/github\.com/i</code> 说明按键映射只在 github.com 上生效。</td>
</tr>
<tr>
<td style="text-align: left"><strong>repeatIgnore</strong></td>
<td style="text-align: left">布尔值[可选],是否可通过点命令重复该按键。</td>
</tr>
</tbody>
</table></div>
<p>一个示例,在不同网站上映射相同的按键到不同的操作:</p>
<pre><code>mapkey('zz', 'Choose a tab', function() {
Front.chooseTab();
}, {domain: /github\.com/i});
mapkey('zz', 'Show usage', function() {
Front.showUsage();
}, {domain: /google\.com/i});
</code></pre>
<p>可视化模式下的 mapkey</p>
<pre><code>vmapkey(keystroke, help_string, action_code, [options])
</code></pre>
<h3 id="映射按键到其他按键"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#映射按键到其他按键" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>映射按键到其他按键</h3>
<pre><code>map(new_keystroke, old_keystroke, [domain_pattern], [new_annotation])
imap(new_keystroke, old_keystroke, [domain_pattern], [new_annotation])
vmap(new_keystroke, old_keystroke, [domain_pattern], [new_annotation])
cmap(new_keystroke, old_keystroke, [domain_pattern], [new_annotation])
</code></pre>
<div class="table-container"><table>
<thead>
<tr>
<th style="text-align: left">参数</th>
<th style="text-align: left">含义</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left"><strong>new_keystroke</strong></td>
<td style="text-align: left">字符串,将要使用的按键。</td>
</tr>
<tr>
<td style="text-align: left"><strong>old_keystroke</strong></td>
<td style="text-align: left">字符串,将被替换的按键。</td>
</tr>
<tr>
<td style="text-align: left"><strong>domain_pattern</strong></td>
<td style="text-align: left">正则表达式[可选],表明只有当域名匹配时,该按键映射才会生效。</td>
</tr>
<tr>
<td style="text-align: left"><strong>new_annotation</strong></td>
<td style="text-align: left">字符串[可选], 如果提供了就用作帮助描述,否则就用 old_keystroke 对应的帮助描述。</td>
</tr>
</tbody>
</table></div>
<h3 id="删除一个按键映射"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#删除一个按键映射" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>删除一个按键映射</h3>
<pre><code>unmap(keystroke, [domain_pattern])
iunmap(keystroke, [domain_pattern])
vunmap(keystroke, [domain_pattern])
</code></pre>
<div class="table-container"><table>
<thead>
<tr>
<th style="text-align: left">参数</th>
<th style="text-align: left">含义</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left"><strong>keystroke</strong></td>
<td style="text-align: left">字符串,将要删除的按键。</td>
</tr>
<tr>
<td style="text-align: left"><strong>domain_pattern</strong></td>
<td style="text-align: left">正则表达式[可选],表明只有当域名匹配时,该操作会生效。</td>
</tr>
</tbody>
</table></div>
<h3 id="删除所有按键映射"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#删除所有按键映射" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>删除所有按键映射</h3>
<pre><code>unmapAllExcept(keystrokes, [domain_pattern])
</code></pre>
<div class="table-container"><table>
<thead>
<tr>
<th style="text-align: left">参数</th>
<th style="text-align: left">含义</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left"><strong>keystrokes</strong></td>
<td style="text-align: left">字符串数组,将要删除的按键。</td>
</tr>
<tr>
<td style="text-align: left"><strong>domain_pattern</strong></td>
<td style="text-align: left">正则表达式[可选],表明只有当域名匹配时,该操作会生效。</td>
</tr>
</tbody>
</table></div>
<p>示例,</p>
<pre><code>unmapAllExcept(['f', '/', '?']);
</code></pre>
<h3 id="在搜索栏里添加搜索别名"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#在搜索栏里添加搜索别名" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>在搜索栏里添加搜索别名</h3>
<pre><code>addSearchAlias(alias, prompt, search_url, suggestion_url, callback_to_parse_suggestion);
</code></pre>
<div class="table-container"><table>
<thead>
<tr>
<th style="text-align: left">参数</th>
<th style="text-align: left">含义</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left"><strong>alias</strong></td>
<td style="text-align: left">一个以上字符,用作搜索别名。当你在搜索栏里输入它之后,再按空格键,会切换到对应的搜索引擎。</td>
</tr>
<tr>
<td style="text-align: left"><strong>prompt</strong></td>
<td style="text-align: left">提示符,说明当前所用搜索引擎。</td>
</tr>
<tr>
<td style="text-align: left"><strong>search_url</strong></td>
<td style="text-align: left">搜索引擎搜索地址。</td>
</tr>
<tr>
<td style="text-align: left"><strong>suggestion_url[可选]</strong></td>
<td style="text-align: left">搜索自动完成 URL,如果提供的话,搜索栏会列出相关关键字。</td>
</tr>
<tr>
<td style="text-align: left"><strong>callback_to_parse_suggestion[可选]</strong></td>
<td style="text-align: left">解析 suggestion_url 返回的内容,列出相关关键字。</td>
</tr>
</tbody>
</table></div>
<pre><code>addSearchAliasX(alias, prompt, search_url, search_leader_key, suggestion_url, callback_to_parse_suggestion, only_this_site_key);
</code></pre>
<div class="table-container"><table>
<thead>
<tr>
<th style="text-align: left">参数</th>
<th style="text-align: left">含义</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left"><strong>search_leader_key</strong></td>
<td style="text-align: left">一个以上字符,如果你不想使用默认的<code>s</code>键。</td>
</tr>
<tr>
<td style="text-align: left"><strong>only_this_site_key</strong></td>
<td style="text-align: left">一个以上字符,如果你不想使用默认的<code>o</code>键。</td>
</tr>
</tbody>
</table></div>
<p>这是一个扩展版本,除了往搜索栏里添加搜索别名,还会创建一个按键映射,由<code>search_leader_key</code>加上<code>alias</code>组成,对应的操作就是搜索选中文本。比如,下面这行,</p>
<pre><code>addSearchAliasX('s', 'stackoverflow', 'http://stackoverflow.com/search?q=', 'o');
</code></pre>
<p>就相当于</p>
<pre><code>addSearchAlias('s', 'stackoverflow', 'http://stackoverflow.com/search?q=');
mapkey('os', 'Search Selected with stackoverflow', function() {
searchSelectedWith(&quot;http://stackoverflow.com/search?q=&quot;);
});
vmapkey('os', 'Search Selected with stackoverflow', function() {
searchSelectedWith(&quot;http://stackoverflow.com/search?q=&quot;);
});
</code></pre>
<h3 id="删除搜索别名及相关绑定"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#删除搜索别名及相关绑定" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>删除搜索别名及相关绑定</h3>
<pre><code>removeSearchAliasX(alias, search_leader_key, only_this_site_key);
</code></pre>
<h3 id="搜索栏辅助函数"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#搜索栏辅助函数" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>搜索栏辅助函数</h3>
<pre><code>Omnibar.listWords(&lt;array of words&gt;)
Omnibar.html(&lt;any html snippets&gt;)
</code></pre>
<h3 id="修改内嵌-vim-编辑器里的按键"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#修改内嵌-vim-编辑器里的按键" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>修改内嵌 vim 编辑器里的按键</h3>
<pre><code>aceVimMap(lhs, rhs, ctx)
</code></pre>
<p>例如,</p>
<pre><code>aceVimMap('jk', '&lt;Esc&gt;', 'insert');
</code></pre>
<h3 id="属性设置列表"><a href="https://SlippyJimmy.github.io/posts/markdown%E8%AF%AD%E6%B3%95%E6%B5%8B%E8%AF%95--%E4%BB%A5surfingkeys%E4%B8%BA%E4%BE%8B/#属性设置列表" class="anchor-link"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="icon anchor-icon"><path d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"/></svg></a>属性设置列表</h3>
<div class="table-container"><table>
<thead>
<tr>
<th style="text-align: left">属性</th>
<th style="text-align: left">默认值</th>
<th style="text-align: left">解释</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left">Hints.characters</td>
<td style="text-align: left">&quot;asdfgqwertzxcvb&quot;</td>
<td style="text-align: left">可用于生成拨号盘的字符。</td>
</tr>
<tr>
<td style="text-align: left">Hints.numericHints</td>
<td style="text-align: left">false</td>
<td style="text-align: left">是否使用数字生成拨号字符,如果打开,你可以输入英文字符过滤链接。</td>
</tr>
<tr>
<td style="text-align: left">Hints.scrollKeys</td>
<td style="text-align: left">&quot;0jkhlG$&quot;</td>
<td style="text-align: left">在拨号模式下可用于滚屏的按键,你通常不需要修改,除非你改了<code>Hints.characters</code>.</td>
</tr>
<tr>
<td style="text-align: left">settings.showModeStatus</td>
<td style="text-align: left">false</td>
<td style="text-align: left">是否在状态栏显示当前模式。</td>
</tr>
<tr>
<td style="text-align: left">settings.showProxyInStatusBar</td>
<td style="text-align: left">false</td>
<td style="text-align: left">是否在状态栏显示代理信息。</td>
</tr>
<tr>
<td style="text-align: left">settings.richHintsForKeystroke</td>
<td style="text-align: left">500</td>
<td style="text-align: left">超过指定毫秒数后显示按键提示,如果指定值等于 0 会禁用按键提示。</td>
</tr>
<tr>
<td style="text-align: left">settings.useLocalMarkdownAPI</td>
<td style="text-align: left">true</td>
<td style="text-align: left">是否使用<a href="https://github.com/chjj/marked" target="_blank" rel="noopener">chjj/marked</a>解析 markdown,否则使用 github API。</td>
</tr>
<tr>
<td style="text-align: left">settings.focusOnSaved</td>
<td style="text-align: left">true</td>
<td style="text-align: left">是否在退出内嵌 VIM 编辑器后把光标定位到输入框。</td>
</tr>
<tr>
<td style="text-align: left">settings.omnibarMaxResults</td>
<td style="text-align: left">10</td>
<td style="text-align: left">搜索栏下面每页显示多少条结果。</td>
</tr>
<tr>
<td style="text-align: left">settings.omnibarPosition</td>
<td style="text-align: left">&quot;middle&quot;</td>
<td style="text-align: left">定义搜索框位置。 [&quot;middle&quot;, &quot;bottom&quot;]</td>
</tr>
<tr>
<td style="text-align: left">settings.omnibarSuggestionTimeout</td>
<td style="text-align: left">200</td>
<td style="text-align: left">设置触发搜索引擎提示的超时,当按键过去设定毫秒后才发起搜索引擎提示的请求,这样避免每次按键就触发请求。</td>
</tr>
<tr>
<td style="text-align: left">settings.focusFirstCandidate</td>
<td style="text-align: left">false</td>
<td style="text-align: left">是否在搜索栏下面自动选择第一个匹配的结果。</td>
</tr>
<tr>
<td style="text-align: left">settings.tabsThreshold</td>
<td style="text-align: left">9</td>
<td style="text-align: left">当打开标签页的数量超过设定值时,使用搜索栏来查找标签页。</td>
</tr>
<tr>
<td style="text-align: left">settings.hintsThreshold</td>
<td style="text-align: left">10000</td>
<td style="text-align: left">当普通的可点击元素(a, button, select, input, textarea)数量超过设定值时,Surfingkeys 就不会为其它可点击的元素显示拨号键了。</td>
</tr>
<tr>
<td style="text-align: left">settings.clickableSelector</td>
<td style="text-align: left">&quot;&quot;</td>
<td style="text-align: left">自定义 CSS selector 用于 f 键选择无法检测到的可点击元素,例如&quot;*.jfk-button, *.goog-flat-menu-button&quot;。</td>
</tr>
<tr>
<td style="text-align: left">settings.clickablePat</td>
<td style="text-align: left">/(https?|thunder|magnet)://\S+/ig</td>
<td style="text-align: left">用于检测文字中可点击链接的正则表达式,你可以按<code>O</code>打开检测到的链接。</td>
</tr>
<tr>
<td style="text-align: left">settings.editableSelector</td>
<td style="text-align: left">div.CodeMirror-scroll,div.ace_content</td>
<td style="text-align: left">额外 CSS selector 以自定义可编辑元素。</td>
</tr>
<tr>
<td style="text-align: left">settings.smoothScroll</td>
<td style="text-align: left">true</td>
<td style="text-align: left">是否启用顺滑滚动。</td>
</tr>
<tr>
<td style="text-align: left">settings.modeAfterYank</td>
<td style="text-align: left">&quot;&quot;</td>
<td style="text-align: left">在可视模式下,在复制文本之后,回到哪种模式,[&quot;&quot;, &quot;Caret&quot;, &quot;Normal&quot;],默认是&quot;&quot;,指保持当前模式。</td>
</tr>
<tr>
<td style="text-align: left">settings.scrollStepSize</td>
<td style="text-align: left">70</td>
<td style="text-align: left"><code>j</code>/<code>k</code>滚动时每一步的大小。</td>
</tr>
<tr>
<td style="text-align: left">settings.scrollFriction</td>
<td style="text-align: left">0</td>
<td style="text-align: left">在滚动一步之后,开始连续滚动所需要的力。数字大,表示需要更大的力来启动连续滚动,这样在开始连续滚动时会有一个抖动,但也能保证第一步的滚动幅度是精确的。</td>
</tr>
<tr>
<td style="text-align: left">settings.nextLinkRegex</td>
<td style="text-align: left">/((&gt;&gt;|next)+)/i</td>
<td style="text-align: left">匹配下一页链接的正则表达式。</td>
</tr>
<tr>
<td style="text-align: left">settings.prevLinkRegex</td>
<td style="text-align: left">/((&lt;&lt;|prev(ious)?)+)/i</td>
<td style="text-align: left">匹配上一页链接的正则表达式。</td>
</tr>
<tr>
<td style="text-align: left">settings.hintAlign</td>
<td style="text-align: left">&quot;center&quot;</td>
<td style="text-align: left">拨号键与它对应的目标如何对齐。[&quot;left&quot;, &quot;center&quot;, &quot;right&quot;]</td>
</tr>
<tr>
<td style="text-align: left">settings.defaultSearchEngine</td>
<td style="text-align: left">&quot;g&quot;</td>
<td style="text-align: left">搜索栏里的默认搜索引擎。</td>
</tr>
<tr>
<td style="text-align: left">settings.blacklistPattern</td>
<td style="text-align: left">undefined</td>
<td style="text-align: left">如果当前访问的网站匹配设定的正则表达式,则禁用 Surfingkeys。</td>
</tr>
<tr>
<td style="text-align: left">settings.focusAfterClosed</td>
<td style="text-align: left">&quot;right&quot;</td>
<td style="text-align: left">关掉当前标签页后,切换到哪一侧的标签页。[&quot;left&quot;, &quot;right&quot;]</td>
</tr>
<tr>
<td style="text-align: left">settings.repeatThreshold</td>
<td style="text-align: left">99</td>
<td style="text-align: left">操作可重复最多次数。</td>
</tr>
<tr>
<td style="text-align: left">settings.tabsMRUOrder</td>
<td style="text-align: left">true</td>
<td style="text-align: left">查找打开标签页时,是否按最近访问顺序列出所有标签页。</td>