Giter Club home page Giter Club logo

Comments (3)

powerman avatar powerman commented on August 15, 2024

Can you please be more specific, what exactly you need?

from vim-plugin-viewdoc.

blankname avatar blankname commented on August 15, 2024

Currently if you save a session while a viewdoc window is open and try to restore that session, you'll end up with a blank buffer named [Doc].
BufReadCmd autocommands could be used to instead restore the doc that was open.

This would, I believe, require changing the naming of viewdoc buffers to contain information about which doc was open in that buffer.

For vim docs it could be something like this:

au BufReadCmd ViewDocHelp://* exe 'ViewDocHelp ' . split(expand('<amatch>'), 'ViewDocHelp://')[0]

from vim-plugin-viewdoc.

powerman avatar powerman commented on August 15, 2024

I'm not sure is it good idea. ViewDoc's buffers are not supposed to be restored - it's arguable is doc opened while previous session is useful in next session. This is similar to quickfix buffers - they also usually restored with empty content or not restored at all. ViewDoc uses setlocal buftype=nofile for it's buffers to make it easier for plugins like Session to detect and wipe such buffers when restoring session, like autosess plugin does.

Maybe it's worth to make ViewDoc buffers more persistent with session restore support, but this should be configurable feature disabled by default and it'll require some amount of work - so I'll be happy to accept PR with this feature, but unlikely I'll have time to implement it myself.

from vim-plugin-viewdoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.