update editor modes
This commit is contained in:
parent
fd362243d7
commit
66c2f29c73
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue