Thanks! I'm looking at it now.

On Tue, Jun 14, 2016 at 11:24 PM, Dmitry Ivanov <etherc...@gmail.com> wrote:

> 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 a topic in the
> Google Groups "yi.devel" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/yi-devel/OgY3naswMhg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> yi-devel+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
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.

Reply via email to