GithubHelp home page GithubHelp logo

wallpants / github-preview.nvim Goto Github PK

View Code? Open in Web Editor NEW
47.0 1.0 2.0 24.49 MB

Live Preview of your Markdown (GFM) files & local git repositories for Neovim.

License: Other

JavaScript 2.27% Lua 6.44% TypeScript 75.16% CSS 15.59% HTML 0.54%
github html live markdown neovim preview bunvim pantsdown gfm

github-preview.nvim's People

Contributors

dependabot[bot] avatar wallpants avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jcha0713

github-preview.nvim's Issues

clear autocommands on unalive http

if I start github-preview in an instance of neovim, and then start github-preview in another instance of neovim,
the first instance of neovim breaks and we start getting a ton of errors saying that the rpc channel id is not valid

single file

enabling single file when looking at a dir breaks stuff

config gif

create gif showcasing temporary config overrides

fix checkhealth

I don't know what that is that we're printing but I couldn't find anything related to the commit the guy pasted in the bug report lol.

#171

also make it return something less generic than "linux"

reuse explorer code

reuse more explorer code in both the sidebar explorer and the markdown container explorer

hash scrolling

rethink hash scrolling both for code line ranges and headings

back navigation

think of a way to make the browser's back button usable

maybe give users the option to disable auto-close in favour of back-navigation.

allow users to specify autoclose true or false, but add a warning in the docs saying that enabling autoclose disables
the back button.

better mermaid support

  • #112
  • replace mermaid example in features.md with something more legible
  • center svgs
  • import mermaid in a script tag in head, add mermaid version from devDependecy as BUILD_CONST to get matching version in script tag.
  • #113

export builtin functions

export builtin functions like telescope does and add docs explaining how to use them to setup a user-command or a keymap

in an Advanced Usage section of the readme

readme installation

update packer.nvim installation instructions to look more similar to lazy.nvim

also do we need to specify disable=false?

[Bug]: Out of memory

What happened?

After installing the plugin, try opening github-preview with GithubPreviewToggle.
I got the notification saying github-preview: init.

After 10s, the terminal crash saying it's using too much memory.

I guess the plugin load all the files into memory to display on browser.

What browsers are you seeing the problem on?

Firefox

:checkhealth

github-preview: require("github-preview.health").check()

github-preview.nvim ~
- platform: linux
- git-commit: a4c7dd98eb274834bfe15629b540fe13ead83b06
- OK bun: 1.0.7

toast system

develop a toast system to render on websocket message

use one of those toasts to tell the user relative links are disabled

lighter docs gifs

some of them are a bit too heavy and on slow internet they take a bit to load

absolute links new tab

open absolute links in a new tab to prevent clicking on them from disabling autoclose.

Autoclose can only work if the navigation stack is emtpy. This is why we use "replace" instead of "push" when navigating.

memoize mermaid svgs

(this might fix the scroll jumping when mermaid diagrams above cursor line & improve performance)

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.