Coder Social home page Coder Social logo

theballsup / lube.nvim Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 31 KB

A field-tested lubricant for reaching the deepest part of your tight filetree with ease. Frictionless.

License: GNU General Public License v3.0

Lua 100.00%
wip-do-not-use very-tight

lube.nvim's Introduction

AMBATUKAM

lube.nvim's People

Contributors

dharmx avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

lube.nvim's Issues

Total directory size.

Add BasicPathHover functionality to asynchronously calculate the folder size and update the UI live bit by bit. This behavior can be found in those GUI file explorers.

Mime icons support.

Icons that illustrates the mimetype of a PathEntry class. This is prefixed/appended to the PathEntry.value.

  • Use extmarks.
  • Define tracker functions similar to the following.
    • move_up_extmark
    • move_down_extmark
    • erase_extmark
  • And more.

Total directory entries.

For some reason vim.loop.fs_opendir() and vim.loop.fs_readdir() only gives out the first member of a directory. We need the total items inside the directory in question, not just the first one.

Make BasicPathHover opening and closing seamless.

  1. When the open bind is placed
  2. You need to open the hover
  3. Now, if you move to the next entry and hit the open bind again
  4. The opened hover float buffer closes but does not reopen
  5. We would need to hit the bind again to open it for that entry
  6. This needs to be solved. What actually needs to happen is that
  7. Whenever, we move to the next entry, if the hover float buffer is opened then we need to automatically close it and reopen it

Special icons for specific paths and entries.

Directory entries like the following should have special icons.

  • images
  • imgs
  • svgs
  • fonts
  • config
  • .node_modules
  • And more.

XDG paths will also have unique icons.

  • ~/Downloads
  • ~/.config
  • ~/.local
  • Public
  • Desktop
  • And rest.

Other common and familiar paths like the following.

  • $HOME
  • ~/Projects
  • And more.

Toggle hidden entries.

With just a touch of a keybind we need to be able to turn on or, off all the hidden entries i.e. file, folders, etc.

Job presets.

Run a task by supplying a command and place the resulting stdout on the hover buffer.

Record unresolved symbolic links.

Have a path entry in humanize_stat function that does not resolve symbolic links. Note that currently the entry.metadata.absolute_path is being fetched by using vim.loop.fs_realpath.

View anything.

Similar to peek but in this one you can preview anything i.e. images, fonts, audio covers, video frames, documents, etc. The hover class will pass on the float buffer's geometry to the supplied script (by the user). This is similar to fzf --preview='prev.sh {}'.

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.