I've found a commit that did somewhat an inverse of what you're trying to do (switch fuzzy stuff from buffer to cmd output area)
https://github.com/ethercrow/yi-config/commit/75407a4b713fb651dccac0d8303d9c8f5dcce438 On Wednesday, June 15, 2016 at 8:59:29 AM UTC+6, Cody Goodman wrote: > > I've been hacking at the yi-fuzzy-open plugin to make it more like helm > from emacs. I succeeded in getting the completions to be inside of a bigger > buffer, but I can't seem to set the modemap of the minibuffer so that > typing in it updates the buffer. > > Here is the code I'm using: > > fuzzyOpenWithDepth :: Int -> YiM () > fuzzyOpenWithDepth d = case () of > _ | d <= 0 -> printMsg "You need at least depth of 1 for > fuzzyOpenWithDepth" > | otherwise -> do > fileList <- fmap (fmap FileItem) (liftBase (getRecursiveContents d "." > )) > bufList <- fmap (fmap (BufferItem . ident . attributes)) (withEditor > (gets > (M.elems . buffers))) > > ffBufRef <- withEditor (newEmptyBufferE fileFinderBufferId) > > let initialState = > FuzzyState (fileList <> V.fromList bufList) > (Just 0) > "" > withGivenBuffer ffBufRef $ do > putBufferDyn initialState > > promptRef <- withEditor (spawnMinibufferE ">" (const localKeymap)) > -- TODO this doesn't seem to make the minibuffer work correctly and > typing in it does not work > withGivenBuffer promptRef $ do > modifyMode $ modeKeymapA .~ topKeymapA %~ const localKeymap > > withEditor $ do > switchToBufferE promptRef > renderE initialState > > > > -- -- Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel --- You received this message because you are subscribed to the Google Groups "yi.devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to yi-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.