You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like CtrlPLastMode! But in a new editing session, it starts out with the default Files mode, which I (currently) use rarely. I use Buffer first and then MRU. So I would like to set the initial mode of LastMode to Buffer. Is this possuble?
I even tried things like call ctrlp#switchtype(0), call ctrlp#setlines(0), or call ctrlp#call("s:setlines_pre", -1). But they either fail with an error or set the mode of the next LastMode invocation somewhat wrong.
The text was updated successfully, but these errors were encountered:
Currently, the plugin doesn't provide a way of changing the default mode for the CtrlPLastMode. Also, there is no API to update the ControlP mode triggered last time.
But to achieve the goal, you can implement your version of CtrlPLastMode like this:
I like CtrlPLastMode! But in a new editing session, it starts out with the default Files mode, which I (currently) use rarely. I use Buffer first and then MRU. So I would like to set the initial mode of LastMode to Buffer. Is this possuble?
I even tried things like
call ctrlp#switchtype(0)
,call ctrlp#setlines(0)
, orcall ctrlp#call("s:setlines_pre", -1)
. But they either fail with an error or set the mode of the next LastMode invocation somewhat wrong.The text was updated successfully, but these errors were encountered: