Giter Club home page Giter Club logo

Comments (5)

xzbdmw avatar xzbdmw commented on June 26, 2024

It is now persisted by filename, what do you mean by neovim instances? like clear them when quit?

from arrow.nvim.

bassamsdata avatar bassamsdata commented on June 26, 2024

Thanks for the prompt reply.
Currently, when I quit Neovim and reopen the file, all local buffers bookmarks are gone. Is there a way to keep them like the the usual arrow global items/files.

from arrow.nvim.

xzbdmw avatar xzbdmw commented on June 26, 2024

Maybe it is a bug, the location is a json file in ~/.cache/nvim/arrow/, can you check it?
Here is related code.

from arrow.nvim.

bassamsdata avatar bassamsdata commented on June 26, 2024

thanks.

yes, I believe there's a bug here. When I lazy load the plugin based on keys (meaning opening the filename before the plugin), all the local-buffer bookmarks disappear, no matter what I do.

But when I lazy load based on event = "BufReadPost" or lazy = false, for example, it works fine and the buffer-bookmarks persist.

I had this in my config:

{
  "otavioschwanck/arrow.nvim",
  cmd = "Arrow open",
  keys = {
    { "<tab>" },
    { "," },
  },
}

Another thing I noticed is that there isn't just one JSON file in the .cache/nvim/arrow directory. For every file I save bookmarks for, there's a corresponding file with no extension, but it's a JSON file. Below is a screenshot of the directory; I only have two files bookmarked.

Screenshot 2024-04-23 at 5 06 16 PM

from arrow.nvim.

xzbdmw avatar xzbdmw commented on June 26, 2024

meaning opening the filename before the plugin

That’s the problem. We don’t load files while lazy loading, so the initial state will be empty table, then after you open menu, we sync that empty state to disk that overwrites the original one.

from arrow.nvim.

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.