History

Move command names to FFI

malc committed 6 years ago

Commit 5a6d8d01 parent dc0308d2 files · +17 −16Browse files

Unified · Split

2 files
  1. ffi.ml +16 −0
  2. main.ml +1 −16
ffi.ml+16−0
@@ -60,3 +60,19 @@ external drawstr : int -> int -> int -> string -> float = "ml_draw_string";; · 59 unmodified lines
60 60
61external fz_version : unit -> string = "ml_fz_version";;61external fz_version : unit -> string = "ml_fz_version";;
62external llpp_version : unit -> string = "ml_llpp_version";;62external llpp_version : unit -> string = "ml_llpp_version";;
63
64module C = struct
65 let dopen = '\023';;
66 let cs = '\024';;
67 let freepage = '\025';;
68 let freetile = '\026';;
69 let search = '\027';;
70 let geometry = '\028';;
71 let reqlayout = '\029';;
72 let page = '\030';;
73 let tile = '\031';;
74 let trimset = '\032';;
75 let settrim = '\033';;
76 let sliceh = '\034';;
77 let interrupt = '\035';;
78end;;
main.ml+1−16
@@ -3,6 +3,7 @@ open Config;; · 2 unmodified lines
3open Glutils;;3open Glutils;;
4open Listview;;4open Listview;;
5 5
6module C = Ffi.C;;
6let selfexec = ref E.s;;7let selfexec = ref E.s;;
7let ignoredoctitlte = ref false;;8let ignoredoctitlte = ref false;;
8let layouth = ref ~-1;;9let layouth = ref ~-1;;
@@ -184,22 +185,6 @@ let intentry_with_suffix text key = · 175 unmodified lines
184 TEcont text185 TEcont text
185;;186;;
186 187
187module C = struct
188 let dopen = '\023';;
189 let cs = '\024';;
190 let freepage = '\025';;
191 let freetile = '\026';;
192 let search = '\027';;
193 let geometry = '\028';;
194 let reqlayout = '\029';;
195 let page = '\030';;
196 let tile = '\031';;
197 let trimset = '\032';;
198 let settrim = '\033';;
199 let sliceh = '\034';;
200 let interrupt = '\035';;
201end;;
202
203let wcmd cmd fmt =188let wcmd cmd fmt =
204 let b = Buffer.create 16 in189 let b = Buffer.create 16 in
205 Printf.kbprintf190 Printf.kbprintf

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t