Giter Site home page Giter Site logo

popup.nvim's Introduction

popup.nvim

[WIP] An implementation of the Popup API from vim in Neovim. Hope to upstream when complete

Installation

" This is a requirement, which implements some useful window management
"   items for neovim
Plug 'nvim-lua/plenary.nvim'

Plug 'nvim-lua/popup.nvim'

Goals

Provide an API that is compatible with the vim popup_* APIs. After stablization and any required features are merged into Neovim, we can upstream this and wrap it with C functions to make the APIs compatible.

Discussion:

  • Should we support similar dictionaries in the neovim style.
    • Can you use "row" and "col", which are the neovim words for where you are going to place your window? Or will we just say these are different words because that's how vim does it?

List of Neovim Features Required:

  • Add Z-index for floating windows
    • When complete, we can add zindex parameter
  • Key handlers (used for popup_filter)
  • scrollbar for floating windows
    • scrollbar
    • scrollbarhighlight
    • thumbhighlight

Optional:

  • Add forced transparency to a floating window.
    • Apparently overrides text?
    • This is for the mask feature flag

Unlikely (due to technical difficulties):

  • Add textprop wrappers?
    • textprop
    • textpropwin
    • textpropid
  • "close"
    • But this is mostly because I don't know how to use mouse APIs in nvim. If someone knows. please make an issue in the repo, and maybe we can get it sorted out.

Unlikely (due to not sure if people are using):

  • tabpage

Progress

Suported Features:

  • what
    • string
    • list of strings
  • popup_create-arguments
    • border
    • borderchars
    • col
    • cursorline
    • highlight
    • line
    • {max,min}{height,width}
    • [?] moved
      • "any"
      • "word"
      • "WORD"
      • "expr"
      • (list options)
    • padding
    • [?] pos
      • Somewhat implemented. Doesn't work with borders though.
    • time
    • title
    • wrap

All known unimplemented vim features at the moment

  • borderhighlight

  • firstline

  • hidden

  • ~ pos

  • posinvert

  • fixed

  • filter

  • filtermode

  • mapping

  • callback

  • mouse:

    • mousemoved
    • close
    • drag
    • resize
  • (not implemented in vim yet) flip

Would love contributors ;)

popup.nvim's People

Contributors

anihm136 avatar conni2461 avatar smolck avatar tamago324 avatar tjdevries avatar

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.