update editor modes

This commit is contained in:
Frédéric Bour 2020-09-14 11:47:49 +02:00
parent fd362243d7
commit 66c2f29c73
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
(defun timetrail--log (args)
"Call timetrail program"
(when args (apply 'call-process "timetrail-log" nil nil nil args)))
(when args (apply 'call-process "timetrail" nil nil nil (cons "record-many" args))))
(defun timetrail--flush ()
"Store this buffer in timetrail"

View File

@ -4,13 +4,13 @@ function! timetrail#log(p)
if ((!exists("b:timetrail_tick") || b:timetrail_tick != b:changedtick) && (a:p != ""))
let l:autowrite = &autowrite
set noautowrite
execute "silent ! timetrail-log " . shellescape(a:p, 1)
execute "silent ! timetrail record-many " . shellescape(a:p, 1)
let &autowrite = l:autowrite
let b:timetrail_tick = b:changedtick
let s:cmdcount += 1
if s:cmdcount > 300
execute "silent ! timetrail-compact"
execute "silent ! timetrail compact"
let s:cmdcount = 0
endif
endif