Coder Social home page Coder Social logo

code-minimap's People

Contributors

charlesbjohnson avatar chenrui333 avatar dependabot[bot] avatar freijon avatar gorbit99 avatar omar-elrefaei avatar sitiom avatar wfxr 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

code-minimap's Issues

Install Via Vim Plug

I know that your vim plugin minimap.vim can be installed using vim-plug but would it also be possible to do the same for code-minimap? I find it easier to install plugins and their dependencies exclusively via vim-plug.

Installation not working on Ubuntu 20.04

Tried the following cmd on cargo 1.51.0 (43b129a20 2021-03-16)
$ cargo install --locked code-minimap

    Updating crates.io index
  Installing code-minimap v0.6.4
   Compiling proc-macro2 v1.0.28
   Compiling libc v0.2.88
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.80
   Compiling version_check v0.9.2
   Compiling memchr v2.4.1
   Compiling unicode-segmentation v1.7.1
   Compiling autocfg v1.0.1
   Compiling bitflags v1.2.1
   Compiling rustversion v1.0.6
   Compiling hashbrown v0.11.2
   Compiling lazy_static v1.4.0
   Compiling strsim v0.10.0
   Compiling termcolor v1.1.2
   Compiling anyhow v1.0.52
   Compiling either v1.6.1
   Compiling heck v0.3.2
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling indexmap v1.7.0
   Compiling itertools v0.10.3
   Compiling os_str_bytes v6.0.0
   Compiling quote v1.0.9
error[E0658]: the `unsafe_op_in_unsafe_fn` lint is unstable
   --> /home/gslab/.cargo/registry/src/github.com-1ecc6299db9ec823/os_str_bytes-6.0.0/src/lib.rs:159:1
    |
159 | #![forbid(unsafe_op_in_unsafe_fn)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #71668 <https://github.com/rust-lang/rust/issues/71668> for more information

error[E0658]: the `unsafe_op_in_unsafe_fn` lint is unstable
   --> /home/gslab/.cargo/registry/src/github.com-1ecc6299db9ec823/os_str_bytes-6.0.0/src/lib.rs:159:1
    |
159 | #![forbid(unsafe_op_in_unsafe_fn)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #71668 <https://github.com/rust-lang/rust/issues/71668> for more information

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `os_str_bytes`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: failed to compile `code-minimap v0.6.4`, intermediate artifacts can be found at `/tmp/cargo-installB0bUPX`

Caused by:
  build failed

Code block instead of braille

Hi, and thanks for your work!

I'm not a huge fan of braille, but more of blocks (like this โ–ˆ).
Do you think it could be added in code-minimap as an option?
At first sight, it seems a pretty easy switch because we just need to change the braille with only one character.

can't be installed with brew

Hello!...I'm trying to install code-minimap with homebrew but seems that that formula doesn't exist, the formula was removed? do you know a workaround?

thank you!

Can't install debian 8,9 older versions

I have tried to install code-minimap on debian 8 and 9, with vim 8.2. * and minimap and I can't install code-minimap and I always get this message in terminal or console: minimap: this plugin requires code-minimap installed, wait response.

Static Aarch64 release?

I'd like to use this program in Termux (Linux userland on Android), but unfortunately the Aarch64 version from the releases doesn't work as it requires shared libraries that aren't available.

I noticed you're already producing some Musl versions (which I presume are static?), would it be possible to also produce one for Aarch64?

Smart identation, keywords.

Hello, I tried to use vim plugin and founded, that usefull information is lost with compression.

Here is some structure block in file:
image
image

vscode minimap:
image

code-minimap with compression 1:1
image

compression: H:0.25; V:0.5
image

really - this block not recognizable, and this kills 90% of minimap sense I think.

Block is worser and worser recognizable with more compression.

I suggest smart identiation blocks rendering.

  • Don't compress/remove start / end block
    Try to add block start on first place of block start
    and block end on last place of block end.

I mean
start:
image
End:
image

Also first / second level identation should have fixed shift, not depending on compression. As example 2 dots, not one or zero.
here is one as example, and it's not recognizable.
image

The aim is to quickly recognize first / second identation level structures / functions / classes / functions, defined in classes.

Does it possible to remove newlines between blocks? (suppose that not?).

Also probably it's would be good to add some marks by keywords?
As example: shift all output on one symbol. And use free column for marks.
We pass some dictionary to program: {'class': 'c', 'function': 'f'}, e.t.c.
And you add this marks at first free column.
Probably some patterns for structures ? like {'{' : "\w+ = {", '}': "}"}

image

Also it would be good to add some custom symbols for fixed line numbers.
Smth like
{bookmark_glyph: [129, 160, 569], breakpoint_glyph: [69, 129, 489]
where bookmark_glyph, breakpoint_glyph are utf-8 font glyphs
And you added this glyphs for specifief lines numbers, not compressiong them.

0.6.5 release build failure

๐Ÿ‘‹ trying to build the latest release, but run into some build issue. The error log is as below:

error build log
  ==> /opt/homebrew/Cellar/code-minimap/0.6.5/bin/code-minimap /private/tmp/code-minimap-test-20240222-7103-e9pigj/test.txt
  error: The following required argument was not provided: version
  
  sage: code-minimap [OPTIONS] [FILE] [COMMAND]
  
  For more information, try '--help'.
  
  Error: code-minimap: failed
  An exception occurred within a child process:
    Minitest::Assertion: Expected: 0
    Actual: 2

relates to Homebrew/homebrew-core#163682

arm64 .deb is broken

code-minimap_0.6.0_arm64.deb fails to install because of a dependency on "libgcc1-arm64-cross", which is a package that should only be needed during cross compilation from another target. the native library requirement should only be "libgcc1".

linear@kurai-vm:~$ sudo dpkg -i code-minimap_0.6.0_arm64.deb
Selecting previously unselected package code-minimap.
(Reading database ... 175503 files and directories currently installed.)
Preparing to unpack code-minimap_0.6.0_arm64.deb ...
Unpacking code-minimap (0.6.0) ...
dpkg: dependency problems prevent configuration of code-minimap:
 code-minimap depends on libgcc1-arm64-cross (>= 1:4.2); however:
  Package libgcc1-arm64-cross is not installed.

dpkg: error processing package code-minimap (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 code-minimap
linear@kurai-vm:~$ apt search libgcc1
Sorting... Done
Full Text Search... Done
libgcc1/now 1:8.3.0-6 arm64 [installed,local]
  GCC support library

Option correction is too eager

code-minimap -- compiler/xla/service/copy_insertion.cc
error: The subcommand 'compiler/xla/service/copy_insertion.cc' wasn't recognized
        Did you mean 'completion'?

If you believe you received this message in error, try re-running with 'code-minimap -- compiler/xla/service/copy_insertion.cc'

Different colored views

It would be interesting to see colored view on the side based on the context, like diff mode, git mode, conflict mode, lsp error.

close minimap window ,then use *# , error "no mmwinid"

may be should unmap in close funciton ....
now i just comment this nnoremap code....

" line 210 , plugin/minimap.vim
" Mappings to make searching update with * or #
if g:minimap_highlight_search != 0
    nnoremap <silent> * *:call minimap#vim#UpdateColorSearch(1)<CR>
    nnoremap <silent> # #:call minimap#vim#UpdateColorSearch(1)<CR>
    " Example mapping for nohlsearch to also clear the minimap search highlighting
    " nnoremap <silent> `` :nohlsearch<CR>:call minimap#vim#ClearColorSearch()<CR>
endif

Cannot start

Environment

NVIM v0.4.4
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20210318-48132-k7r45c/neovim-0.4.4/build/config -I/tmp/neovim-20210318-48132-k7r45c/neovim-0.4.4/src -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/gettext/include -I/tmp/neovim-20210318-48132-k7r45c/neovim-0.4.4/build/src/nvim/auto -I/tmp/neovim-20210318-48132-k7r45c/neovim-0.4.4/build/include
Compiled by brew@BigSur

Features: +acl +iconv +tui

errorMsg

E801: ID already taken: 9265455
Error detected while processing function <SNR>125_handle_autocmd[13]..<SNR>125_win_enter_handler[2]..<SNR>125_minimap_wi
n_enter[7]..<SNR>125_minimap_move[10]..<SNR>125_highlight_line:
line    2:

Option to specify start and end lines

It would be nice if there were options to specify the line numbers of the file on which to start and end creation of the minimap. These values could be passed into core::write as Option<usize>?

The command-line option -S or --start-line could be used to set the line to start on. Thus, -S 5 would make the minmap start on and include line 5 of the file. Any value less than 1 defaults to 1. If the value is greater than the total number of lines in the file, the minimap is empty.

Likewise, the option -E or --end-line could be used to set the line to end on. -E 25 would make the minimap end on and include line 25. If the value is less than the start line value, then the minimap can simply be empty. An out of bounds end value would maybe just make the minimap include the rest of the file?

A lib crate API?

Hello. I'm interested in using code-minimap in a text editor project. Might it be possible to expose this crate as a library by adding a lib.rs interface?

Thanks

Hi! Just wanted to thank you and express gratitude for such a nice small hobby project!

I'm using Kakoune and the community fairly small, was excited to find this project, and can't wait for having some free time to tinker with it implementing my own minimap for Kakoune!

Just a small appraisal, thanks :)

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.