Giter Site home page Giter Site logo

Breaking changes about papis.nvim HOT 3 OPEN

jghauser avatar jghauser commented on May 30, 2024
Breaking changes

from papis.nvim.

Comments (3)

jghauser avatar jghauser commented on May 30, 2024

With #19 (thanks to @davvil!), we now depend on yq rather than the lyaml lua rock to convert papis' .yaml files. This should eliminate difficulties that have always plagued the installation of such rocks (especially, but not only, when it comes to lazy.nvim). Please check out the installation section in the README for further information.

from papis.nvim.

jghauser avatar jghauser commented on May 30, 2024

With #21, we now use the papis_id to identify entries (rather than depending on the ref). This brings advantages as papis_id is supposed to be stable, whereas the user might change ref (which has at times led to some funny behaviour). After updating, please close all neovim instances, start a new one (there might be an error message when you run :PapisStart) and run :PapisReInitData.

I had some error messages appear due to duplicate refs, which weren't caught before. If that happens, please edit the relevant info.yaml files (check papis.nvim debug messages to find out which ones) and rerun :PapisReInitData.

If failures persist, please delete the papis.nvim database. Use :checkhealth papis to find out its location.

from papis.nvim.

jghauser avatar jghauser commented on May 30, 2024

With #28, I introduced a change in default keymaps. Given that only keymaps are affected and that these aren't enabled by default, this probably won't break anyone's setup -- but it might mess with your muscle memory for a bit. The change comes because the <c-n> and <c-p> insert commands are used by Neovim and Telescope for selecting next/previous items and the way things were set up messed with this (see #22).

The new functionality is:

  1. papis.nvim keymaps are only active for the files that match what's set in the init_filenames option
  2. Telescope insert mode <c-n> (open note) and <c-o> (open file) have become <c-o>n and f`
  3. Cursor action (normal mode) <leader>pn and <leader>po have become <leader>pon and <leader>pof
    EDIT: 4. Insert mode <c-p>p to open Telescope search has become <c-o>p.

These keybinds are unfortunately a bit longer, but I thought it more important that the papis.nvim default keybinds do not clash with neovim/telescope defaults. Of course, the keybinds can still be disabled and set to your heart's content 😄

from papis.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.