X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/24c7594d62d8d7fbbcdb64b11ce4adc5d8e6991a..8e137f2f8a32d4bd4ffba7b8de034cb6a1917c2f:/atom/packages/vim-mode/lib/status-bar-manager.coffee?ds=inline diff --git a/atom/packages/vim-mode/lib/status-bar-manager.coffee b/atom/packages/vim-mode/lib/status-bar-manager.coffee index 82e35e1..080e4bf 100644 --- a/atom/packages/vim-mode/lib/status-bar-manager.coffee +++ b/atom/packages/vim-mode/lib/status-bar-manager.coffee @@ -1,9 +1,7 @@ -{Disposable, CompositeDisposable} = require 'event-kit' - ContentsByMode = 'insert': ["status-bar-vim-mode-insert", "Insert"] 'insert.replace': ["status-bar-vim-mode-insert", "Replace"] - 'command': ["status-bar-vim-mode-command", "Command"] + 'normal': ["status-bar-vim-mode-normal", "Normal"] 'visual': ["status-bar-vim-mode-visual", "Visual"] 'visual.characterwise': ["status-bar-vim-mode-visual", "Visual"] 'visual.linewise': ["status-bar-vim-mode-visual", "Visual Line"] @@ -27,6 +25,11 @@ class StatusBarManager [klass, text] = newContents @element.className = klass @element.textContent = text + else + @hide() + + hide: -> + @element.className = 'hidden' # Private