             [lt.objs.command :as cmd :refer [command]]
             [lt.objs.editor :as editor]
             [lt.objs.console :as console]
-            [lt.objs.notifos :as notifos])
+            [lt.objs.notifos :as notifos]
+            [lt.objs.tabs :as tabs])
   (:require-macros [lt.macros :refer [behavior]]))
 
 (def mode-tags {:all #{:editor.keys.vim.insert :editor.keys.normal

  (editor/off ed "vim-mode-change" (mode-change-listener ed))
  (object/raise ed :mode-change "normal-editor"))

(behavior ::mode-change
          :triggers #{:mode-change}
          :reaction (fn [this mode]

          :exec (fn []
                  (let [cur (pool/last-active)]
                    (object/raise cur :save)
                    (close-ts-if-empty! cur)))})

(command {:command :vim-quit
          :desc "Vim: :q"
          :exec (fn []
                  (let [cur (pool/last-active)]
                    (close-ts-if-empty! cur)))})

(command {:command :vim-nohlsearch
          :desc "Vim: :nohlsearch"
