rasa-ext-vim 0.1.2 → 0.1.3
raw patch · 2 files changed
+9/−9 lines, 2 filesdep ~rasadep ~rasa-ext-cursorsdep ~rasa-ext-files
Dependency ranges changed: rasa, rasa-ext-cursors, rasa-ext-files, rasa-ext-status-bar
Files
- rasa-ext-vim.cabal +5/−5
- src/Rasa/Ext/Vim.hs +4/−4
rasa-ext-vim.cabal view
@@ -1,5 +1,5 @@ name: rasa-ext-vim-version: 0.1.2+version: 0.1.3 cabal-version: >=1.10 build-type: Simple license: MIT@@ -22,11 +22,11 @@ Rasa.Ext.Vim build-depends: base >=4.8 && <5,- rasa >=0.1.6 && <0.2,- rasa-ext-files >=0.1.1 && <0.2,+ rasa >=0.1.7 && <0.2,+ rasa-ext-files >=0.1.2 && <0.2, rasa-ext-views >=0.1.1 && <0.2,- rasa-ext-cursors >=0.1.2 && <0.2,- rasa-ext-status-bar >=0.1.1 && <0.2,+ rasa-ext-cursors >=0.1.4 && <0.2,+ rasa-ext-status-bar >=0.1.2 && <0.2, text >=1.2.2.1 && <1.3, yi-rope >=0.7.0.2 && <0.8, text-lens >=0.1.0.0 && <0.2,
src/Rasa/Ext/Vim.hs view
@@ -9,7 +9,7 @@ import Rasa.Ext.Cursors import Rasa.Ext.StatusBar -import Control.Monad (unless, void)+import Control.Monad import Control.Lens import Data.Default import Data.Typeable@@ -51,9 +51,9 @@ vim :: Action () vim = do -- Register to listen for keypresses- void $ eventListener handleKeypress+ onEveryTrigger_ handleKeypress -- Set the status bar to the current mode before each render- void $ beforeRender setStatus+ beforeEveryRender_ setStatus -- | The event hook which listens for keypresses and responds appropriately handleKeypress :: Keypress -> Action ()@@ -70,7 +70,7 @@ -- | Sets the status bar to the current mode and current VimHist setStatus :: Action ()-setStatus = void . focusDo $ do+setStatus = focusDo_ $ do modeDisp <- use (mode.to show.to Y.fromString) histDisp <- use (hist.to show.to Y.fromString) centerStatus modeDisp