Giter Site home page Giter Site logo

iyonaga / minimap-lens Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 4.0 321 KB

Atom plugin to show code lens on hovering to Minimap.

Home Page: https://atom.io/packages/minimap-lens

License: MIT License

JavaScript 85.60% Less 14.40%
atom atom-package atom-plugin minimap-lens minimap

minimap-lens's Introduction

minimap-lens package

Atom plugin to show code lens on hovering to Minimap.

Demo

Settings

  • Large File Lines Num

When the number of lines of an editor is larger than this number, the minimap lens is disabled to prevent slowing down of the editor. (default: 1500)

  • Lens Delay

Delay before showing the lens in ms. (default: 300)

  • Lens Height

The height of lens in pixels. (default: 200)

minimap-lens's People

Contributors

aminya avatar aviatesk avatar dependabot[bot] avatar iyonaga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

minimap-lens's Issues

Uncaught TypeError: Cannot read property 'style' of undefined

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.39.1 x64
Electron: 3.1.10
OS: Ubuntu 18.04.2
Thrown From: minimap-lens package 0.3.0

Stack Trace

Uncaught TypeError: Cannot read property 'style' of undefined

At /home/connes-v/.atom/packages/minimap-lens/lib/minimap-lens.js:126

TypeError: Cannot read property 'style' of undefined
    at MinimapLens.showLens (/packages/minimap-lens/lib/minimap-lens.js:126:14)
    at MinimapLens.onMouseEnter (/packages/minimap-lens/lib/minimap-lens.js:75:10)

Commands

     -5:17.9.0 core:paste (input.hidden-input)
  3x -3:46.2.0 application:new-file (button.btn.btn-xs)
  3x -3:34.8.0 core:backspace (input.hidden-input)
  3x -3:25 editor:newline (input.hidden-input)
 85x -3:20.7.0 core:backspace (input.hidden-input)
     -3:07.5.0 intentions:highlight (input.hidden-input)
     -3:07.1.0 application:new-file (input.hidden-input)
     -3:05.8.0 intentions:highlight (input.hidden-input)
  2x -3:05.7.0 application:new-file (input.hidden-input)
 71x -2:20.5.0 core:backspace (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui.teletype-Authenticated)
     -2:01.4.0 core:move-right (input.hidden-input)
     -2:01.2.0 core:backspace (input.hidden-input)
     -2:00.4.0 core:paste (input.hidden-input)
  3x -0:53.6.0 core:backspace (input.hidden-input)

Non-Core Packages

advanced-open-file 0.16.8 
busy-signal 2.0.1 
docblock-python 0.15.0 
file-icons 2.1.33 
git-plus 8.7.1 
Hydrogen 2.10.3 
hydrogen-launcher 1.2.2 
hydrogen-python 0.0.8 
ide-python 1.4.2 
intentions 1.1.5 
language-ini 1.21.0 
linter 2.3.0 
linter-python 3.1.2 
linter-ui-default 1.7.1 
logo-file-icons 1.13.0 
minimap 4.29.9 
minimap-lens 0.3.0 
minimap-linter 2.2.1 
multi-cursor 2.1.5 
python-isort 0.0.7 
python-tools 0.6.9 
teletype 0.13.4 

Lens goes out of bounds

When you hover over the minimap too close to the top or the bottom, the lens extends outside the viewport.

Failed to activate the minimap-lens package

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.58.0 x64
Electron: 9.4.4
OS: Unknown Windows version
Thrown From: minimap-lens package 0.8.2

Stack Trace

Failed to activate the minimap-lens package

At Cannot read property 'tablrViewProvider' of null

TypeError: Cannot read property 'tablrViewProvider' of null
    at Object.createView (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:3515078)
    at ViewRegistry.createView (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:327571)
    at ViewRegistry.getView (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:327036)
    at /packages/minimap-lens/lib/minimap-lens.js:83:41
    at /packages/minimap/dist/main.js:1:3629
    at Map.forEach (<anonymous>)
    at /packages/minimap/dist/main.js:1:3616)
    at MinimapLens.activatePlugin (/packages/minimap-lens/lib/minimap-lens.js:81:46)
    at /packages/minimap/dist/main.js:1:106083)
    at /packages/minimap/dist/main.js:1:105999)
    at /packages/minimap/dist/main.js:1:105141
    at Config.observeKeyPath (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:337464)
    at Config.observe (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:331946)
    at /packages/minimap/dist/main.js:1:105125
    at /packages/minimap/dist/main.js:1:105347)
    at MinimapLens.consumeMinimapServiceV1 (/packages/minimap-lens/lib/minimap-lens.js:68:18)
    at Provider.provide (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:14:1167327)
    at ServiceHub.consume (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:3503865)
    at Package.activateServices (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:3512196)
    at Package.activateNow (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:3508951)
    at ~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:14:2607
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:1186925)
    at Emitter.emit (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:1188366)
    at ~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:385902
    at Set.forEach (<anonymous>)
    at PackageManager.activatePackage (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:385864)
    at ~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:915033
    at r (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:909639)
    at n (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:14:1194945)
    at ~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:14:1195033
    at Socket.<anonymous> (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:14:1193701)
    at Socket.emit (events.js:228:7)
    at Pipe.<anonymous> (net.js:664:12)

Commands

  4x -4:14.1.0 core:move-down (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)

Non-Core Packages

atom-beautify 0.33.4 
CSV-Editor 2.1.0 
minimap 4.40.0 
minimap-lens 0.8.2 
teletype 0.13.4 

Uncaught TypeError: Cannot read property 'lens' of undefined

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.35.1 x64
Electron: 2.0.18
OS: Ubuntu 18.04.2
Thrown From: minimap-lens package 0.2.0

Stack Trace

Uncaught TypeError: Cannot read property 'lens' of undefined

At /home/vnk/.atom/packages/minimap-lens/lib/minimap-lens.js:200

TypeError: Cannot read property 'lens' of undefined
    at MinimapLens.destroyLens (/packages/minimap-lens/lib/minimap-lens.js:200:13)
    at MinimapLens.onMouseLeave (/packages/minimap-lens/lib/minimap-lens.js:83:10)

Commands

     -1:45.1.0 core:move-right (input.hidden-input)
 10x -1:44.6.0 core:backspace (input.hidden-input)
     -1:27.5.0 intentions:highlight (input.hidden-input)
     -1:27 core:copy (input.hidden-input)
     -1:02.5.0 php-cs-fixer:fix (input.hidden-input)

Non-Core Packages

activate-power-mode 2.7.0 
aligner-php 1.3.0 
atom-autocomplete-php 0.25.6 
atom-beautify 0.33.4 
atom-clock 0.1.16 
atom-debug-ui 1.0.4 
atom-ide-ui 0.13.0 
atom-material-syntax 1.0.8 
autocomplete-php 0.3.7 
busy-signal 2.0.1 
CP-syntax 0.6.0 
dark-code-syntax 1.1.2 
dark-snek-syntax 2.2.5 
darker-one-dark-syntax 1.1.0 
docblockr 0.13.7 
duotone-dark-red-syntax 0.3.2 
duotone-dark-space-syntax 2.1.0 
editorconfig 2.3.0 
file-icons 2.1.30 
ghar-dark-syntax 2.0.0 
goto-definition 1.3.4 
highlight-line 0.12.0 
highlight-selected 0.14.0 
hyperclick 0.0.0 
ide-php 0.7.18 
intentions 1.1.5 
language-htaccess 0.2.0 
language-markdown 0.29.0 
language-vbscript 0.9.0 
linter 2.3.0 
linter-php 1.6.0 
linter-phpcs 1.6.12 
linter-phpmd 2.0.1 
linter-ui-default 1.7.1 
linter-xmllint 1.4.4 
minimap 4.29.9 
minimap-cursorline 0.2.0 
minimap-find-and-replace 4.5.2 
minimap-lens 0.2.0 
minimap-linter 2.2.1 
minimap-quick-highlight 1.0.1 
minimap-selection 4.5.0 
nms-syntax 1.0.0 
noop-syntax 0.5.0 
nv-dark-syntax 1.4.1 
php-cs-fixer 4.1.1 
php-debug 0.3.5 
php-integrator-autocomplete-plus 1.6.2 
power-effects 0.4.0 
project-manager 3.3.6 
sort-lines 0.18.0 
sync-settings 0.8.6 
theme-reel 1.2.0 
todo-show 2.3.2 
touch-of-red-syntax 2.0.0 
touch-of-red-ui 0.1.0 

Uncaught TypeError: d.item.getTitle is not a function

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.46.0 x64
Electron: 4.2.7
OS: Microsoft Windows 10 Enterprise
Thrown From: minimap-lens package 0.3.0

Stack Trace

Uncaught TypeError: d.item.getTitle is not a function

At C:\Users\Touhidul.Islam\AppData\Local\atom\app-1.46.0\resources\app\static\<embedded>:14

TypeError: d.item.getTitle is not a function
    at TabView.updateTitle (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:14:958257)
    at new TabView (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:14:952704)
    at TabBarView.addTabForItem (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:11:1157200)
    at ~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:11:1155488
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:11:1215907)
    at Emitter.emit (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:11:1217348)
    at Pane.addItem (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:11:459192)
    at MinimapLens.showLens (/packages/minimap-lens/lib/minimap-lens.js:131:10)
    at MinimapLens.onMouseEnter (/packages/minimap-lens/lib/minimap-lens.js:75:10)

Commands

     -9:35 tree-view:collapse-directory (div.tool-panel.tree-view)
  3x -4:04.1.0 core:delete (input.hidden-input)
     -3:37.6.0 editor:newline (input.hidden-input)
     -3:30 core:delete (input.hidden-input)
     -3:25.1.0 core:save (input.hidden-input)
  2x -3:18.2.0 core:delete (input.hidden-input)
     -1:56.4.0 core:save (input.hidden-input)

Non-Core Packages

advanced-open-file 0.16.8 
atom-beautify 0.33.4 
atom-python-run 0.9.7 
atom-python-test 1.0.1 
autocomplete-python 1.16.0 
file-icons 2.1.41 
git-blame 1.8.0 
git-plus 8.7.1 
goto-definition 1.3.4 
highlight-colors 0.9.0 
kite 0.184.0 
minimap 4.29.9 
minimap-cursorline 0.2.0 
minimap-lens 0.3.0 
platformio-ide-terminal 2.10.0 
python-debugger 0.2.0 
python-indent 1.2.6 
python-tools 0.6.9 
script 3.25.0 
todo 0.6.0 

Uncaught TypeError: Cannot read property 'minimap-autohide' of undefined

Error when hovering the minimap

Steps to reproduce:

  1. open Atom with minimap installed and activated
  2. hover the minimap
  3. Everytime you hover the minimap, this error appears:

Atom: 1.52.0 x64
Electron: 6.1.12
OS: Debian GNU/Linux
Thrown From: minimap-lens package 0.8.1

Stack Trace

Uncaught TypeError: Cannot read property 'minimap-autohide' of undefined

At /home/florentin/.atom/packages/minimap-lens/lib/minimap-lens.js:294

TypeError: Cannot read property 'minimap-autohide' of undefined
    at MinimapLens.calcEditorDims (/packages/minimap-lens/lib/minimap-lens.js:294:28)
    at MinimapLens.showLens (/packages/minimap-lens/lib/minimap-lens.js:217:46)
    at /packages/minimap-lens/lib/minimap-lens.js:135:14

Commands

     -1:37 intentions:highlight (input.hidden-input)

Non-Core Packages

arduino-upload 1.8.0 
atom-beautify 0.33.4 
atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
atom-runner 2.7.1 
autocomplete-python 1.16.0 
busy-signal 2.0.1 
clock 1.9.1 
color-picker 2.3.0 
emmet 2.4.3 
expose 0.15.0 
file-icons 2.1.46 
git-plus 8.7.1 
git-time-machine 2.1.0 
highlight-selected 0.17.0 
intentions 1.1.5 
kite 0.197.0 
language-arduino 0.4.3 
less-than-slash 0.19.0 
linter 3.1.1 
linter-csslint 2.0.6 
linter-jsonlint 1.4.0 
linter-pylint 2.1.1 
linter-spell 0.15.0 
linter-spell-html 0.7.0 
linter-ui-default 2.3.5 
minimap 4.36.1 
minimap-lens 0.8.1 
nord-atom-syntax 0.10.0 
pigments 0.40.6 
project-viewer 1.4.0 
python-indent 1.2.6 
python-tools 0.6.9 
teletype 0.13.4 
terminal-plus 0.14.5 

Uncaught TypeError: Cannot read property 'minimapForEditor' of null

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.51.0 x64
Electron: 5.0.13
OS: Ubuntu 20.04.1
Thrown From: minimap-lens package 0.8.1

Stack Trace

Uncaught TypeError: Cannot read property 'minimapForEditor' of null

At /home/hll/.atom/packages/minimap-lens/lib/minimap-lens.js:216

TypeError: Cannot read property 'minimapForEditor' of null
    at MinimapLens.showLens (/packages/minimap-lens/lib/minimap-lens.js:216:34)
    at /packages/minimap-lens/lib/minimap-lens.js:135:14

Commands

     -7:14.5.0 core:select-all (input.hidden-input)
  3x -7:13.8.0 core:paste (input.hidden-input)
     -1:31.9.0 timecop:view (input.hidden-input)
     -0:45.5.0 todo:toggle (div.timecop.pane-item.native-key-bindings)

Non-Core Packages

ask-stack 2.2.0 
atom-beautify 0.33.4 
atom-file-icons 0.7.1 
atom-ide-ui 0.13.0 
atom-live-server 2.3.0 
autocomplete-js-import 1.4.0 
autocomplete-json 5.5.2 
autocomplete-python 1.16.0 
highlight-selected 0.17.0 
ide-python 1.5.0 
linter 3.1.1 
linter-jscs 4.2.4 
linter-jshint 3.1.19 
minimap 4.29.9 
minimap-lens 0.8.1 
pigments 0.40.6 
predawn-syntax 1.0.4 
predawn-ui 1.0.7 
python-autopep8 0.1.3 
script 3.26.0 
todo 0.6.0 

Lens doesn't show what is under cursor

When I use lens, the cursor's position and the lens 'peek' don't line up. The peek is several lines below the cursor. This makes it very disorienting to use.

Uncaught TypeError: Cannot read property 'minimap-autohide' of undefined

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.53.0 x64
Electron: 6.1.12
OS: Mac OS X 10.15.7
Thrown From: minimap-lens package 0.8.1

Stack Trace

Uncaught TypeError: Cannot read property 'minimap-autohide' of undefined

At /Users/braulio.delatorre/.atom/packages/minimap-lens/lib/minimap-lens.js:294

TypeError: Cannot read property 'minimap-autohide' of undefined
    at MinimapLens.calcEditorDims (/packages/minimap-lens/lib/minimap-lens.js:294:28)
    at MinimapLens.showLens (/packages/minimap-lens/lib/minimap-lens.js:217:46)
    at /packages/minimap-lens/lib/minimap-lens.js:135:14

Commands

Non-Core Packages

atom-clock 0.1.18 
atom-live-server 2.3.0 
auto-update-packages 1.0.1 
browser-plus 0.0.98 
busy-signal 2.0.1 
expose 0.15.0 
file-icons 2.1.46 
highlight-selected 0.17.0 
intentions 1.1.5 
linter 3.1.1 
linter-ui-default 2.3.5 
minimap 4.36.6 
minimap-cursorline 1.0.1 
minimap-find-and-replace 5.0.7 
minimap-git-diff 4.3.5 
minimap-highlight-selected 4.6.4 
minimap-lens 0.8.1 
minimap-linter 2.2.2 
minimap-pigments 0.2.2 
pigments 0.40.6 
platformio-ide-terminal 2.10.1 
remote-ftp 2.2.4 
restart-atom 0.2.0 
todo-show 2.3.2 

[0.8.1] Doesn't work

That module doesn't work for Atom 1.45.0 on Centos 7.8.

minimap-lens v0.8.1

minimap-codeglance works.

Minimap On Left side

Lens dosen't adjust to left side:
Arrow direktion is stille on right side.
Lens is position wrong, and is covering up the minimap, this make the hover function on the minimap show wrong, and buggy.

Uncaught TypeError: tab.item.getTitle is not a function

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.49.0 x64
Electron: 5.0.13
OS: Microsoft Windows 10 Education
Thrown From: minimap-lens package 0.7.0

Stack Trace

Uncaught TypeError: tab.item.getTitle is not a function

At C:\Users\bella\AppData\Local\atom\app-1.47.0\resources\app.asar\node_modules\tabs\lib\tab-view.js:310

TypeError: tab.item.getTitle is not a function
    at TabView.module.exports.TabView.updateTitle (/app.asar/node_modules/tabs/lib/tab-view.js:310:26)
    at /app.asar/node_modules/tabs/lib/tab-view.js:37:12)
    at TabBarView.module.exports.TabBarView.addTabForItem (/app.asar/node_modules/tabs/lib/tab-bar-view.js:226:17)
    at /app.asar/node_modules/tabs/lib/tab-bar-view.js:161:24
    at Function.simpleDispatch (/app.asar/node_modules/event-kit/dist/emitter.js:64:14)
    at Emitter.emit (/app.asar/node_modules/event-kit/dist/emitter.js:257:28)
    at Pane.addItem (/app.asar/src/pane.js:685:18)
    at MinimapLens.prepareCreateLens (/packages/minimap-lens/lib/minimap-lens.js:256:10)
    at MinimapLens.showLens (/packages/minimap-lens/lib/minimap-lens.js:178:29)
    at MinimapLens.onMouseEnter (/packages/minimap-lens/lib/minimap-lens.js:116:12)

Commands

     -9:09.9.0 core:backspace (input.hidden-input)

Non-Core Packages

atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
highlight-selected 0.17.0 
kite 0.185.0 
language-latex 1.2.0 
latex 0.50.2 
minimap 4.29.9 
minimap-lens 0.7.0 
pdf-view 0.72.0 
script 3.26.0 

Uncaught TypeError: Cannot read property 'style' of undefined

[Enter steps to reproduce:]

  • Try to use with Teletype package.

Atom: 1.41.0 x64
Electron: 4.2.7
OS: Mac OS X 10.15.1
Thrown From: minimap-lens package 0.3.0

Stack Trace

Uncaught TypeError: Cannot read property 'style' of undefined

At /Users/francesco/.atom/packages/minimap-lens/lib/minimap-lens.js:126

TypeError: Cannot read property 'style' of undefined
    at MinimapLens.showLens (/packages/minimap-lens/lib/minimap-lens.js:126:14)
    at MinimapLens.onMouseEnter (/packages/minimap-lens/lib/minimap-lens.js:75:10)

Commands

     -1:00.0 settings-view:open (input.hidden-input)
     -0:56.5.0 core:confirm (input.hidden-input)
     -0:43.8.0 core:paste (input.hidden-input)

Non-Core Packages

atom-file-icons 0.7.1 
autocomplete-cmake 0.3.1 
autosave-onchange 1.5.1 
behave-theme 1.7.0 
build-cmake 0.12.0 
conventional-changelog 0.1.0 
doxygen-snippets 0.1.1 
editorconfig 2.5.0 
ftp-remote-edit 0.17.4 
language-cmake 1.2.0 
language-doxygen 0.7.0 
language-gitattributes 1.0.5 
minimap 4.29.9 
minimap-cursorline 0.2.0 
minimap-hide 0.3.0 
minimap-lens 0.3.0 
minimap-selection 4.5.0 
night-day-theming 0.0.7 
nucleus-dark-ui 0.12.3 
pp-markdown 0.0.2 
structure-view 0.2.1 
teletype 0.13.4 

Extreme Lag - Lots of Lines Of Code

When working with thousands of lines of code there is massive lag that is caused by lens.

I have been noticing extreme lag that past few days while working with nearly 4000 lines of code. A lot of this code was wrapping it self as well due to the lines being long.

By extreme lag I mean atom stops responding until lens can catch up.

Example: on line 20XX i need to move my mouse over to the other screen to work on the other screen and this would cause my mouse to pass over the minimap warranting the lens to pop up. This causes atom to lock up for about 30s to 60s.

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.