Giter Club home page Giter Club logo

atom-scroll-without-moving-cursor's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @PooSham
  • ๐Ÿ‘€ Iโ€™m interested in frontend mostly, but I also do backend
  • ๐ŸŒฑ Iโ€™m currently learning React, Docker and writing WordPress plugins
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on my calendar app/wordpress-plugin (code hosted on @WestCoastJitterbugsOrg)
  • ๐Ÿ“ซ How to reach me: mail or PM

atom-scroll-without-moving-cursor's People

Contributors

poosham avatar

Stargazers

 avatar

Watchers

 avatar  avatar

atom-scroll-without-moving-cursor's Issues

Line scrolling does not seem to function.

As far as I can tell, the line-scrolling function does not work. I try "Alt-UP" and "Alt-DOWN" and get nothing. The "Alt-PAGE UP" and "Alt-PAGE DOWN" function seems to work fine.

Package works on 1st file only

Hi @PooSham:

Thanks for your package!

But scrolling without moving cursor seems not to work on the 2nd, 3rd,... opened files.

Please have a look.

versions

64-bit Ubuntu 16.10

Atom    : 1.13.0
Electron: 1.3.13
Chrome  : 52.0.2743.82
Node    : 6.5.0

apm  1.14.1
npm  3.10.5
node 4.4.5
python 2.7.12+
git 2.9.3

Uncaught TypeError: Cannot read property 'setScrollTop' of null

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.14.2 x64
Electron: 1.3.13
OS: Microsoft Windows 10 Pro
Thrown From: scroll-without-moving-cursor package 0.3.1

Stack Trace

Uncaught TypeError: Cannot read property 'setScrollTop' of null

At C:\Users\SCrossan\AppData\Local\atom\app-1.14.2\resources\app.asar\src\text-editor-element.js:335

TypeError: Cannot read property 'setScrollTop' of null
    at /app.asar/src/text-editor-element.js:335:28)
    at Object.scroll (/packages/scroll-without-moving-cursor/lib/scroll-without-moving-cursor.coffee:70:20)
    at Object.scrollDownLines (/packages/scroll-without-moving-cursor/lib/scroll-without-moving-cursor.coffee:41:6)
    at /packages/scroll-without-moving-cursor/lib/scroll-without-moving-cursor.coffee:21:108)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
    at /app.asar/src/command-registry.js:3:59
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:599:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:390:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/app.asar/src/window-event-handler.js:106:36)
    at /app.asar/src/window-event-handler.js:3:59)

Commands

     -0:51.3.0 editor:scroll-up-without-moving-cursor (input.hidden-input)
     -0:51.1.0 editor:scroll-down-without-moving-cursor (input.hidden-input)
     -0:50.8.0 editor:scroll-up-without-moving-cursor (input.hidden-input)
  2x -0:50.5.0 editor:scroll-down-without-moving-cursor (input.hidden-input)
     -0:50.1.0 editor:scroll-up-without-moving-cursor (input.hidden-input)
     -0:49.9.0 editor:scroll-down-without-moving-cursor (input.hidden-input)
  7x -0:42 core:move-up (input.hidden-input)
  2x -0:40 core:move-down (input.hidden-input)
     -0:38.9.0 editor:scroll-down-without-moving-cursor (input.hidden-input)
     -0:38.2.0 editor:scroll-up-without-moving-cursor (input.hidden-input)
     -0:37.4.0 editor:scroll-down-without-moving-cursor (input.hidden-input)
     -0:37 editor:scroll-up-without-moving-cursor (input.hidden-input)
     -0:36.4.0 editor:consolidate-selections (input.hidden-input)
     -0:36.4.0 core:cancel (input.hidden-input)
     -0:07.8.0 editor:scroll-down-without-moving-cursor (input.hidden-input)
     -0:07.7.0 editor:scroll-up-without-moving-cursor (input.hidden-input)

Non-Core Packages

atom-hg 2.0.11 
atom-jade 0.3.0 
atom-material-syntax 1.0.2 
atom-material-ui 1.3.9 
atom-ternjs 0.17.2 
atom-uikit 1.2.2 
autocomplete-modules 1.6.7 
bottom-dock 0.4.4 
color-picker 2.2.5 
file-icons 2.0.15 
git-plus 7.3.0 
grunt-manager 0.1.16 
hyperclick 0.0.40 
jade-bootstrap3-snippets 0.3.0 
jade-snippets 0.5.0 
language-babel 2.54.1 
language-batch 0.4.0 
language-docker 1.1.7 
language-jade 0.7.2 
language-nginx 0.6.2 
linter 1.11.23 
linter-jshint 3.0.2 
linter-php 1.3.1 
minimap 4.26.8 
nodejs-snippets 2.0.2 
php-integrator-annotations 1.1.1 
php-integrator-autocomplete-plus 1.2.0 
php-integrator-base 2.1.9 
php-integrator-call-tips 1.2.1 
php-integrator-linter 1.3.0 
php-integrator-navigation 1.1.2 
php-integrator-tooltips 1.1.5 
project-manager 3.3.3 
project-plus 0.9.0 
qolor 0.4.1 
react-es6-snippets 0.3.0 
react-snippets 0.7.0 
redux-snippets 0.2.2 
scroll-without-moving-cursor 0.3.1 
snippets-jade 0.2.2 
Stylus 3.1.0 
tortoise-hg 1.0.0 

Uncaught TypeError: this.editorElement.getHeight is not a function

Hi @PooSham:

Thanks for your response in #1!

However, the following new error was thrown. Please have a look if you have more time.

Steps to Reproduce

  1. open a text file in Atom
  2. do page-down-without-moving-cursor

Versions

Stack Trace

Uncaught TypeError: this.editorElement.getHeight is not a function

At /home/vu/Dropbox/atom/packages/scroll-without-moving-cursor/lib/scroll-without-moving-cursor.coffee:66

TypeError: this.editorElement.getHeight is not a function
    at Object.calculatePageScrollPixels (/packages/scroll-without-moving-cursor/lib/scroll-without-moving-cursor.coffee:66:29)
    at Object.scrollDownPage (/packages/scroll-without-moving-cursor/lib/scroll-without-moving-cursor.coffee:45:25)
    at /packages/scroll-without-moving-cursor/lib/scroll-without-moving-cursor.coffee:22:106)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
    at /app.asar/src/command-registry.js:3:59
    at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/app.asar/node_modules/command-palette/lib/command-palette-view.js:210:32)
    at CommandPaletteView.module.exports.SelectListView.confirmSelection (/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at /app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
    at /app.asar/src/command-registry.js:3:59
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:599:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:390:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/app.asar/src/window-event-handler.js:106:36)
    at /app.asar/src/window-event-handler.js:3:59)

Commands

     -0:47.5.0 editor:page-down-without-moving-cursor (input.hidden-input)
  2x -0:22.1.0 core:cancel (a.stack-toggle)
     -0:17.2.0 command-palette:toggle (input.hidden-input)
  2x -0:16 core:backspace (input.hidden-input)
  2x -0:12.3.0 core:move-down (input.hidden-input)
     -0:10.9.0 core:confirm (input.hidden-input)
     -0:10.8.0 editor:page-down-without-moving-cursor (input.hidden-input)

Non-Core Packages

atom-html-preview 0.1.22 
atom-sort-projects 1.6.0 
language-batch 0.4.0 
language-latex 1.0.0 
latex 0.42.3 
latex-friend 0.0.11 
MagicPython 1.0.7 
script 3.14.1 
scroll-without-moving-cursor 0.3.4 
sort-lines 0.14.0 

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.