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
hey, i am really getting into octo.
it boosts my workflow.
i am using nvim sessions a lot.
has somebody experimented with using octo buffers in sessions?
when loading a session i am getting empty buffers for the octo buffers.
when editing them (run edit in empty octo buffer) they reload and everything is fine.
i experimented a little bit with a function like that to edit all octo buffers, but with no complete success.
would be interesting to know if someone got octo with sessions running.
i am searching for a solution where, on session load, i can run over all buffers and edit the octo buffers, so that they reload.
functionDmSLoad(session)
bufdobwipeoutbufdobwipeoutsilent!execute':silent source ~/.config/nvim/sessions_new/'. a:session" --- if i have two octo buffers in a session, this reloads at least oneforbufinfilter(getbufinfo({'bufloaded':1}), {v-> len(v:val['windows'])})
editendfor" --- another try: if i have two octo buffers in a session, this reloads at least oneforbufinfilter(getbufinfo({'bufloaded':1}), {v-> len(v:val['windows'])})
let octoInName =stridx(buf.name, 'octo')
if octoInName ==0let bufName =string(buf['name'])
let bufNumber =buf['bufnr']
execute':buffer ' . bufNumber
editendifendforendfunctioncommand -nargs=1 DmSLoad :callDmSLoad(<q-args>)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hey, i am really getting into octo.
it boosts my workflow.
i am using nvim sessions a lot.
has somebody experimented with using octo buffers in sessions?
when loading a session i am getting empty buffers for the octo buffers.
when editing them (run edit in empty octo buffer) they reload and everything is fine.
i experimented a little bit with a function like that to edit all octo buffers, but with no complete success.
would be interesting to know if someone got octo with sessions running.
i am searching for a solution where, on session load, i can run over all buffers and edit the octo buffers, so that they reload.
Beta Was this translation helpful? Give feedback.
All reactions