romgrk / barbar.nvim

The neovim tabline plugin.
2.17k stars 82 forks source link

draft integration #478

Closed otavioschwanck closed 1 year ago

otavioschwanck commented 1 year ago

https://github.com/romgrk/barbar.nvim/issues/477

otavioschwanck commented 1 year ago

@Iron-E on last commit, i turned it on a way that works with every session manager (just need to implement the save function).

Can you help me with TODO?

If this solution is good and you give the permission i do the rest of the code and documentation.

Iron-E commented 1 year ago

About the todo:

You'll have to redefine commands like that to conditionally call save_session (which is what I hinted to earlier by saying "it will have to touch a lot of places")

It'd have to happen on a lot of the commands I think: BufferPin, the sort commands, etc. Anything that changes the order of the tabline.

otavioschwanck commented 1 year ago

About the todo:

You'll have to redefine commands like that to conditionally call save_session (which is what I hinted to earlier by saying "it will have to touch a lot of places")

It'd have to happen on a lot of the commands I think: BufferPin, the sort commands, etc. Anything that changes the order of the tabline.

i could do it, but, i will wait you and @romgrk to see if this solution os valid for the plugin. If any of you say ok, i will complete this PR

otavioschwanck commented 1 year ago

Closing this PR. With a greater qtd of files, it gets buggy