GithubHelp home page GithubHelp logo

activate-power-mode's Introduction

Activate Power Mode

A package for Atom to replicate the effects from codeinthedark/editor.

activate-power-mode-0 4 0

Now with a COMBO MODE!!!

activate-power-mode-combo

For a list of power mode packages to other editors, check out codeinthedark/awesome-power-mode.

Install

With the atom package manager:

apm install activate-power-mode

Or Settings ➔ Packages ➔ Search for activate-power-mode

Usage

  • Activate with Ctrl-Alt-O or through the command panel with Activate Power Mode: Toggle. Use the command again to deactivate.

IMPORTANT: When Combo Mode is enabled, particles and other effects won't appear until you reach the activation threshold.

  • Reset the max combo streak with the command Activate Power Mode: Reset Max Combo

Settings

Auto Toggle

Auto enable power mode on atom start.

Combo Mode

  • Enable/Disable

When enabled effects won't appear until reach the activation threshold.

  • Activation Threshold
  • Streak Timeout
  • Exclamation Every
  • Exclamation Texts

Screen Shake

  • Enable/Disable
  • Intensity

Play Audio

  • Enable/Disable
  • Volume
  • Audioclip (Gun, Typewriter, Custom)

Particles

  • Enable/Disable
  • Colour

With this option you can select if use the color at cursor position, random colors or a fixed one.

  • Total Count
  • Spawn Count
  • Size

Excluded File Types

  • Array of file types to exclude

Plugins

Here you can Enable/Disable the registered plugins.

Customize

You can extend the basic functionality of this package by consuming the activate-power-mode service, with this you can register your own plugins, flows and canvas effects.

Check it out in the wiki.

If you only want to change the input logic, see the user file flow page.

activate-power-mode's People

Contributors

a-manning avatar alexgleason avatar cnheider avatar crazymykl avatar faceair avatar humzashah avatar jerajo avatar joelbesada avatar lexcast avatar mrracoon avatar mrspeaker avatar nathanchapman avatar rebootjeff avatar tcyrus avatar tinymins avatar tushkiz 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  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

activate-power-mode's Issues

ERR. install error

it says that I got ERR when installing it using the atom package management tools.Here is the INFO:

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp http GET https://atom.io/download/atom-shell/v0.34.0/node-v0.34.0.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! install error
gyp ERR! stack Error: read ECONNRESET
gyp ERR! stack at errnoException (net.js:905:11)
gyp ERR! stack at TCP.onread (net.js:559:19)
gyp ERR! System Darwin 15.0.0
gyp ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=0.34.0" "--dist-url=https://atom.io/download/atom-shell" "--arch=x64" "--ensure"
gyp ERR! cwd /Users/Terry_Yang/.atom
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok

cannot edit more than one file

if I open one more file, the active-power-mode cannot work in the second file, and meanwhile the first file will just shake without light.

Combo mode

Could Power Mode be activated after writing successfully some amount of characters/words? Deleting anything would cancel the combo.

TextEditor.pixelPositionForScreenPosition is deprecated.

This method is deprecated on the model layer. Use TextEditorElement::pixelPositionForScreenPosition instead

TextEditor.pixelPositionForScreenPosition (F:\download\atom-windows\Atom\resources\app.asar\src\text-editor.js:2714:9)
Object.spawnParticles (C:\Users\dings\.atom\packages\activate-power-mode\lib\activate-power-mode.coffee:67:26)
Object.throttledSpawnParticles (C:\Users\dings\.atom\packages\activate-power-mode\node_modules\lodash.throttle\node_modules\lodash.debounce\index.js:182:23)
Object.onChange (C:\Users\dings\.atom\packages\activate-power-mode\lib\activate-power-mode.coffee:48:5)
Emitter.emit (F:\download\atom-windows\Atom\resources\app.asar\node_modules\event-kit\lib\emitter.js:82:11)
TextBuffer.applyChange (F:\download\atom-windows\Atom\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:631:20)

Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.

This happens when I try to type or delete text after activating via ctrl+alt+o.

C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:770

TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
    at TypeError (native)
    at Object.module.exports.ActivatePowerMode.spawnParticles (file:///C:/Users/lmann/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:84:13)
    at Object.debounced [as throttledSpawnParticles] (C:\Users\lmann\.atom\packages\activate-power-mode\node_modules\lodash.throttle\node_modules\lodash.debounce\index.js:182:23)
    at Object.module.exports.ActivatePowerMode.onChange (file:///C:/Users/lmann/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:58:6)
    at Emitter.module.exports.Emitter.emit (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\event-kit\lib\emitter.js:86:11)
    at TextBuffer.module.exports.TextBuffer.applyChange (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:645:20)
    at TextBuffer.module.exports.TextBuffer.setTextInRange (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:550:12)
    at TextBuffer.module.exports.TextBuffer.delete (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:652:19)
    at Selection.module.exports.Selection.deleteSelectedText (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\selection.js:600:37)
    at Selection.module.exports.Selection.delete (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\selection.js:557:19)
    at C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\text-editor.js:749:35
    at C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\text-editor.js:771:29
    at TextBuffer.module.exports.TextBuffer.transact (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:765:18)
    at TextEditor.module.exports.TextEditor.transact (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\text-editor.js:1152:26)
    at C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\text-editor.js:765:24
    at TextEditor.module.exports.TextEditor.mergeSelections (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\text-editor.js:2013:43)
    at TextEditor.module.exports.TextEditor.mergeIntersectingSelections (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\text-editor.js:1979:35)
    at TextEditor.module.exports.TextEditor.mutateSelectedText (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\text-editor.js:763:19)
    at TextEditor.module.exports.TextEditor.delete (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\text-editor.js:748:19)
    at TextEditor.commandRegistry.add.stopEventPropagationAndGroupUndo.core:delete (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\register-default-commands.js:344:30)
    at C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\register-default-commands.js:573:34
    at TextBuffer.module.exports.TextBuffer.transact (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:765:18)
    at TextEditor.module.exports.TextEditor.transact (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\text-editor.js:1152:26)
    at atom-text-editor.newCommandListeners.(anonymous function) (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\register-default-commands.js:572:22)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:260:29)
    at C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:533:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:356:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\window-event-handler.js:99:36)
    at HTMLDocument.<anonymous> (C:\Users\lmann\AppData\Local\atom\app-1.2.4\resources\app.asar\src\window-event-handler.js:3:61)

Add rage bar

We need a "rage bar" :D
Something like each "Enter" or "Backspace" keypress generates "rage", bar fills, when value reaches red zone - effect appears. Rage continiously decreases while idling or reading.

Uncaught TypeError: Cannot read property 'clearRect' of undefined

Steps to reproduce:

  1. Install this package and wait in place.
  2. ctrl+option+o
  3. boom

Atom Version: 1.2.4
System: Mac OS X 10.11.1
Thrown From: activate-power-mode package, v0.3.2

Stack Trace

Uncaught TypeError: Cannot read property 'clearRect' of undefined

At /Users/ZhongyiTong/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:101

TypeError: Cannot read property 'clearRect' of undefined
    at Object.module.exports.ActivatePowerMode.drawParticles (/Users/ZhongyiTong/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:101:13)

Commands

     -1:19.6.0 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-always.theme-atom-material-syntax.theme-atom-material-ui.find-visible)
  2x -0:59.7.0 core:paste (atom-text-editor.editor.mini.is-focused)
     -0:49.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:42.9.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:42.9.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:37.9.0 core:paste (atom-text-editor.editor.mini.is-focused)
     -0:36 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:00.8.0 activate-power-mode:toggle (div.package-detail.panels-item)

Config

{
  "core": {
    "themes": [
      "atom-material-ui",
      "atom-material-syntax"
    ]
  }
}

Installed Packages

# User
activate-power-mode, v0.3.2
atom-material-syntax, v0.2.6
atom-material-ui, v0.8.0

# Dev
No dev packages

image

window10 can't use

[Enter steps to reproduce below:]

1.setup and toggle

Atom Version: 1.2.4
System: Unknown Windows Version
Thrown From: 'activate-power-mode-0.3.2' package, vundefined

Stack Trace

Failed to activate the activate-power-mode package

At Cannot read property 'classList' of undefined

TypeError: Cannot read property 'classList' of undefined
    at Object.module.exports.ActivatePowerMode.activate (file:///C:/Users/lyc/.atom/packages/activate-power-mode-0.3.2/lib/activate-power-mode.coffee:20:19)
    at Package.module.exports.Package.activateNow (C:\Users\lyc\AppData\Local\atom\app-1.2.4\resources\app.asar\src\package.js:170:19)
    at C:\Users\lyc\AppData\Local\atom\app-1.2.4\resources\app.asar\src\package.js:738:25
    at Emitter.module.exports.Emitter.emit (C:\Users\lyc\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\event-kit\lib\emitter.js:86:11)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\lyc\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:241:20)
    at CommandRegistry.handleCommandEvent (C:\Users\lyc\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\lyc\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:160:19)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (C:\Users\lyc\AppData\Local\atom\app-1.2.4\resources\app.asar\src\atom-environment.js:987:28)
    at emitOne (events.js:77:13)
    at EventEmitter.emit (events.js:169:7)

Commands

  3x -2:49.5.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -2:48.2.0 core:paste (atom-text-editor.editor.mini.is-focused)
  2x -2:47.5.0 core:select-all (atom-text-editor.editor.mini.is-focused)
     -2:27.6.0 core:paste (atom-text-editor.editor.mini.is-focused)
     -2:25.9.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -1:54.8.0 activate-power-mode:toggle (div.panels)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  }
}

Installed Packages

# User
activate-power-mode, v0.3.2

# Dev
No dev packages

Add sound

This would be a lot better if there were some sound effects

Error:Cannot find module 'lodash.throttle'

when i press ctrl+alt+o

atom call attention to me

Failed to activate the activate-power-mode package
Cannot find module 'lodash.throttle'
Hide Stack Trace
Error: Cannot find module 'lodash.throttle'
at Module._resolveFilename (module.js:336:15)
at Function.Module._resolveFilename (C:\Users\qians_000\AppData\Local\atom\app-1.2.4\lib\net45\resources\app.asar\src\module-cache.js:383:52)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (:1:12)
at Object. (:1:1)
at Module._compile (module.js:434:26)
at Object.defineProperty.value as .coffee
at Module.load (module.js:355:32)

Uncaught TypeError: deprecationSite.getFileName is not a function

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.2.4
System: Mac OS X 10.11
Thrown From: activate-power-mode package, v0.3.2

Stack Trace

Uncaught TypeError: deprecationSite.getFileName is not a function

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/grim/lib/grim.js:56

TypeError: deprecationSite.getFileName is not a function
    at Object.global.__grim__.deprecate (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/grim/lib/grim.js:56:36)
    at TextEditor.module.exports.TextEditor.pixelPositionForScreenPosition (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:2747:12)
    at Object.module.exports.ActivatePowerMode.spawnParticles (/Users/Genesis/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:67:27)
    at Object.debounced [as throttledSpawnParticles] (/Users/Genesis/.atom/packages/activate-power-mode/node_modules/lodash.throttle/node_modules/lodash.debounce/index.js:182:23)
    at Object.module.exports.ActivatePowerMode.onChange (/Users/Genesis/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:48:6)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:86:11)
    at TextBuffer.module.exports.TextBuffer.applyChange (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:645:20)
    at TextBuffer.module.exports.TextBuffer.revertToCheckpoint (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:799:16)
    at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:768:14)
    at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1152:26)

Commands

     -0:12.2.0 activate-power-mode:toggle (atom-text-editor.editor.is-focused.vim-mode.normal-mode.power-mode)
     -0:11.3.0 vim-mode:activate-insert-mode (atom-text-editor.editor.is-focused.vim-mode.normal-mode.power-mode)
     -0:06.7.0 activate-power-mode:toggle (atom-text-editor.editor.is-focused.vim-mode.power-mode.insert-mode)

Config

{
  "core": {}
}

Installed Packages

# User
activate-power-mode, v0.3.2
autocomplete-clang, v0.8.8
autocomplete-python, v0.10.4
color-picker, v2.0.13
go-plus, v3.5.2
hyperclick, v0.0.32
nuclide-flow, v0.0.32
nuclide-hack, v0.0.32
vim-mode, v0.63.0

# Dev
No dev packages

Failed to activate the activate-power-mode package

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.3.0-beta6
System: Unknown Windows Version
Thrown From: activate-power-mode package, v0.3.2

Stack Trace

Failed to activate the activate-power-mode package

At Cannot find module 'lodash.throttle'

Error: Cannot find module 'lodash.throttle'
    at Module._resolveFilename (module.js:336:15)
    at Function.Module._resolveFilename (F:\atom\Atom Beta\resources\app.asar\src\module-cache.js:383:52)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (F:\atom\Atom Beta\resources\app.asar\src\native-compile-cache.js:41:21)
    at Object.<anonymous> (file:///C:/Users/peidepc/.atom/packages/activate-power-mode-master/lib/activate-power-mode.coffee:1:12)
    at Object.<anonymous> (file:///C:/Users/peidepc/.atom/packages/activate-power-mode-master/lib/activate-power-mode.coffee:1:1)
    at Module._compile (F:\atom\Atom Beta\resources\app.asar\src\native-compile-cache.js:92:30)
    at Object.defineProperty.value [as .coffee] (F:\atom\Atom Beta\resources\app.asar\src\compile-cache.js:190:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (F:\atom\Atom Beta\resources\app.asar\src\native-compile-cache.js:41:21)
    at Package.module.exports.Package.requireMainModule (F:\atom\Atom Beta\resources\app.asar\src\package.js:663:34)
    at Package.module.exports.Package.activateConfig (F:\atom\Atom Beta\resources\app.asar\src\package.js:188:14)
    at Package.module.exports.Package.activateNow (F:\atom\Atom Beta\resources\app.asar\src\package.js:166:14)
    at F:\atom\Atom Beta\resources\app.asar\src\package.js:740:25
    at Emitter.module.exports.Emitter.emit (F:\atom\Atom Beta\resources\app.asar\node_modules\event-kit\lib\emitter.js:86:11)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (F:\atom\Atom Beta\resources\app.asar\src\command-registry.js:241:20)
    at F:\atom\Atom Beta\resources\app.asar\src\command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (F:\atom\Atom Beta\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:533:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (F:\atom\Atom Beta\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:356:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (F:\atom\Atom Beta\resources\app.asar\src\window-event-handler.js:99:36)
    at HTMLDocument.<anonymous> (F:\atom\Atom Beta\resources\app.asar\src\window-event-handler.js:3:61)

Commands

     -0:11 activate-power-mode:toggle (atom-text-editor.editor.is-focused)

Config

{
  "core": {}
}

Installed Packages

# User
No installed packages

# Dev
No dev packages

Uncaught TypeError: Cannot read property 'clearRect' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.2.4
System: Mac OS X 10.11.1
Thrown From: activate-power-mode package, v0.3.2

Stack Trace

Uncaught TypeError: Cannot read property 'clearRect' of undefined

At /Users/longinus/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:101

TypeError: Cannot read property 'clearRect' of undefined
    at Object.module.exports.ActivatePowerMode.drawParticles (/Users/longinus/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:101:13)

Commands

Config

{
  "core": {
    "disabledPackages": [
      "about"
    ]
  }
}

Installed Packages

# User
activate-power-mode, v0.3.2

# Dev
No dev packages

Activate Issue

I open text editor with new file after activate ctrl-alt-o, it works well only. However, open existing old files to active power mode, no response so far.

I'm using Atom Text Editor and Mac OS X Yosemite (10.10.5).

That's pretty amazing ⚡

[SOLVED]

Cannot read property 'classList' of undefined

I got this error when I activate this package on Windows atom. Have someone had this error?

TypeError: Cannot read property 'classList' of undefined
at Object.module.exports.ActivatePowerMode.activate (file:///C:/Users/v-almett/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:20:19)
at Package.module.exports.Package.activateNow (C:\Users\v-almett\AppData\Local\atom\app-1.2.4\resources\app.asar\src\package.js:170:19)
at C:\Users\v-almett\AppData\Local\atom\app-1.2.4\resources\app.asar\src\package.js:738:25
at Emitter.module.exports.Emitter.emit (C:\Users\v-almett\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\event-kit\lib\emitter.js:86:11)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\v-almett\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:241:20)
at CommandRegistry.handleCommandEvent (C:\Users\v-almett\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\v-almett\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:160:19)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (C:\Users\v-almett\AppData\Local\atom\app-1.2.4\resources\app.asar\src\atom-environment.js:987:28)
at emitOne (events.js:77:13)
at EventEmitter.emit (events.js:169:7)

activate-power-mode

It's so amazing! But I can't use it in long time.It rocks the screen so frequent.So if it doesn't shake ,it will
be better.

Unknown Windows Version

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.2.4
System: Unknown Windows Version
Thrown From: activate-power-mode package, v0.3.2

Stack Trace

Failed to activate the activate-power-mode package

At Cannot read property 'classList' of undefined

TypeError: Cannot read property 'classList' of undefined
    at Object.module.exports.ActivatePowerMode.activate (file:///C:/Users/xuan/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:20:19)
    at Package.module.exports.Package.activateNow (C:\Users\xuan\AppData\Local\atom\app-1.2.4\resources\app.asar\src\package.js:170:19)
    at C:\Users\xuan\AppData\Local\atom\app-1.2.4\resources\app.asar\src\package.js:738:25
    at Emitter.module.exports.Emitter.emit (C:\Users\xuan\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\event-kit\lib\emitter.js:86:11)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\xuan\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:241:20)
    at CommandRegistry.handleCommandEvent (C:\Users\xuan\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\xuan\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:160:19)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (C:\Users\xuan\AppData\Local\atom\app-1.2.4\resources\app.asar\src\atom-environment.js:987:28)
    at emitOne (events.js:77:13)
    at EventEmitter.emit (events.js:169:7)

Commands

     -0:02.3.0 activate-power-mode:toggle (div.panels-item)

Config

{
  "core": {}
}

Installed Packages

# User
activate-power-mode, v0.3.2

# Dev
No dev packages

Cannot read property 'classList' of undefined

TypeError: Cannot read property 'classList' of undefined
at Object.module.exports.ActivatePowerMode.activate (file:///C:/Users/Kevin/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:20:19)
at Package.module.exports.Package.activateNow (C:\Users\Kevin\AppData\Local\atom\app-1.2.4\resources\app.asar\src\package.js:170:19)
at C:\Users\Kevin\AppData\Local\atom\app-1.2.4\resources\app.asar\src\package.js:738:25
at Emitter.module.exports.Emitter.emit (C:\Users\Kevin\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\event-kit\lib\emitter.js:86:11)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\Kevin\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:241:20)
at CommandRegistry.handleCommandEvent (C:\Users\Kevin\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\Kevin\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:160:19)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (C:\Users\Kevin\AppData\Local\atom\app-1.2.4\resources\app.asar\src\atom-environment.js:987:28)
at emitOne (events.js:77:13)
at EventEmitter.emit (events.js:169:7)

Uncaught TypeError: Cannot read property 'querySelector' of null

Uncaught TypeError: Cannot read property 'querySelector' of null

Atom Version: 0.158.0
System: Mac OS X 10.11.1
Thrown From: activate-power-mode package, v0.3.2

Steps To Reproduce

  1. ...
  2. ...

Stack Trace

At /Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:121

TypeError: Cannot read property 'querySelector' of null
  at Object.module.exports.ActivatePowerMode.calculateCursorOffset (/Users/Sarkizz/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:35:47)
  at Object.module.exports.ActivatePowerMode.spawnParticles (/Users/Sarkizz/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:65:21)
  at Object.debounced [as throttledSpawnParticles] (/Users/Sarkizz/.atom/packages/activate-power-mode/node_modules/lodash.throttle/node_modules/lodash.debounce/index.js:182:23)
  at Object.module.exports.ActivatePowerMode.onChange (/Users/Sarkizz/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:48:6)
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at TextBuffer.module.exports.TextBuffer.applyPatch (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:590:20)
  at TextBuffer.module.exports.TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:503:12)
  at Selection.module.exports.Selection.insertText (/Applications/Atom.app/Contents/Resources/app/src/selection.js:446:43)
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:738:31
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:777:27
  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:112:18)
  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:683:27)
  at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1146:26)
  at TextEditor.module.exports.TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:770:19)
  at TextEditor.module.exports.TextEditor.insertText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:735:21)
  at TextEditor.object.(anonymous function) [as insertText] (/Applications/Atom.app/Contents/Resources/app/node_modules/underscore-plus/lib/underscore-plus.js:73:27)
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:653:23
  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:112:18)
  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:683:27)
  at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1146:26)
  at [object Object].module.exports.React.createClass.onTextInput (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:652:30)
  at HTMLDivElement.boundMethod (/Applications/Atom.app/Contents/Resources/app/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1295:21)

/cc @atom/core

Particle effects constantly above the cursor

at the very beginning of a file. it's right at the cursor.
and the particles appears above the cursor farther when the cursor is at lower place of a file.
at 550 line it's about 5 lines above.
and it's constantly at the beginning of a line. no matter where the cursor is in a line.

Failed to load the activate-power-mode package

  1. active power mode with Active Power Mode: Toggle
  2. input some code in the Power Mode and close the file
  3. open another file and reload atom window with : Window: Reload
  4. the following error appears

Atom Version: 1.2.4
System: Mac OS X 10.11.1
Thrown From: Atom Core

Stack Trace

Failed to load the activate-power-mode package

At Syntax error on line 2, column 2: One top level value expected

SyntaxError: Syntax error on line 2, column 2: One top level value expected
    at nodeTransforms.Block (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/node_modules/season/node_modules/cson-parser/lib/parse.js:74:15)
    at transformNode (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/node_modules/season/node_modules/cson-parser/lib/parse.js:197:12)
    at Object.parse (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/node_modules/season/node_modules/cson-parser/lib/parse.js:203:12)
    at parseObject (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/node_modules/season/lib/cson.js:42:23)
    at parseContentsSync (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/node_modules/season/lib/cson.js:68:16)
    at Object.module.exports.readFileSync (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/node_modules/season/lib/cson.js:170:14)
    at /opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/package.js:381:43
    at Array.map (native)
    at Package.module.exports.Package.loadMenus (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/package.js:379:42)
    at /opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/package.js:111:19
    at Package.module.exports.Package.measure (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/package.js:92:15)
    at Package.module.exports.Package.load (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/package.js:106:12)
    at PackageManager.module.exports.PackageManager.loadPackage (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/package-manager.js:434:14)
    at PackageManager.module.exports.PackageManager.loadPackages (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/package-manager.js:386:14)
    at AtomEnvironment.module.exports.AtomEnvironment.startEditorWindow (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:667:21)
    at Object.<anonymous> (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/initialize-application-window.js:38:8)
    at Object.<anonymous> (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/initialize-application-window.js:49:4)
    at Module._compile (module.js:434:26)
    at Object.defineProperty.value [as .js] (/opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:190:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at setupWindow (file:///opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/static/index.js:79:5)
    at window.onload (file:///opt/homebrew-cask/Caskroom/atom/1.0.19/Atom.app/Contents/Resources/app.asar/static/index.js:35:9)

Commands

Config

{
  "core": {
    "ignoredNames": [
      ".bundle",
      ".git",
      "repositories",
      "vendor"
    ],
    "themes": [
      "atom-dark-ui",
      "seti-syntax"
    ],
    "hideGitIgnoredFiles": false,
    "disabledPackages": [
      "background-tips",
      "exception-reporting",
      "metrics"
    ],
    "projectHome": "/Users/zhanghuan/Code"
  },
  "editor": {
    "fontFamily": "Menlo",
    "invisibles": {},
    "fontSize": 15,
    "softWrapAtPreferredLineLength": true,
    "showInvisibles": true,
    "backUpBeforeSaving": true,
    "showIndentGuide": true,
    "preferredLineLength": 150
  }
}

Installed Packages

# User
autocomplete-paths, v1.0.2
linter, v1.11.3
linter-rubocop, v0.4.4
pdf-view, v0.37.0
pig, v1.0.0
seti-syntax, v0.4.1
tablr, v0.9.0
vim-mode, v0.63.0

# Dev
No dev packages

no Particles while vim-mode enabled

Very impressive! Greate job! I love this plugin.
And while I am using this plugin, I found when vim-mode is enabled, while typing, only shake but no paticles shown.
I wonder if this is a problem and if I can use both vim-mode and activate-power-mode, it would be greate.
Thanks again for your good job!

Uncaught TypeError: Cannot read property 'querySelector' of null

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.2.4
System: Mac OS X 10.11.1
Thrown From: activate-power-mode package, v0.3.2

Stack Trace

Uncaught TypeError: Cannot read property 'querySelector' of null

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:770

TypeError: Cannot read property 'querySelector' of null
    at Object.module.exports.ActivatePowerMode.calculateCursorOffset (/Users/archer/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:35:47)
    at Object.module.exports.ActivatePowerMode.spawnParticles (/Users/archer/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:65:21)
    at Object.debounced [as throttledSpawnParticles] (/Users/archer/.atom/packages/activate-power-mode/node_modules/lodash.throttle/node_modules/lodash.debounce/index.js:182:23)
    at Object.module.exports.ActivatePowerMode.onChange (/Users/archer/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:48:6)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:86:11)
    at TextBuffer.module.exports.TextBuffer.applyChange (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:645:20)
    at TextBuffer.module.exports.TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:550:12)
    at Selection.module.exports.Selection.insertText (/Applications/Atom.app/Contents/Resources/app.asar/src/selection.js:482:43)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:732:29
    at /Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:771:29

Commands

     -0:25.8.0 application:open (input.hidden-input)
     -0:09.6.0 vim-mode:activate-insert-mode (input.hidden-input)
     -0:09.0 emmet:insert-formatted-line-break-only (input.hidden-input)
     -0:09.0 editor:newline (input.hidden-input)
     -0:08.8.0 core:move-up (input.hidden-input)
     -0:06.5.0 activate-power-mode:toggle (input.hidden-input)
  3x -0:04.4.0 core:backspace (input.hidden-input)
     -0:00.4.0 activate-power-mode:toggle (input.hidden-input)
     -0:00.0 core:backspace (input.hidden-input)

Config

{
  "core": {}
}

Installed Packages

# User
activate-power-mode, v0.3.2
color-picker, v2.0.13
emmet, v2.3.15
javascript-snippets, v1.0.0
language-vue-component, v0.3.0
linter, v1.11.2
linter-eslint, v5.2.4
minimap, v4.16.2
travis-ci-status, v0.18.0
vim-mode, v0.63.0

# Dev
No dev packages

Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.2.4
System: Unknown Windows Version
Thrown From: activate-power-mode package, v0.3.2

Stack Trace

Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null

At /C:/Users/Administrator/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:44

TypeError: Cannot read property 'getBoundingClientRect' of null
    at Object.module.exports.ActivatePowerMode.calculateCursorOffset (file:///C:/Users/Administrator/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:35:77)
    at Object.module.exports.ActivatePowerMode.spawnParticles (file:///C:/Users/Administrator/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:65:21)
    at Object.debounced [as throttledSpawnParticles] (C:\Users\Administrator\.atom\packages\activate-power-mode\node_modules\lodash.throttle\node_modules\lodash.debounce\index.js:182:23)
    at Object.module.exports.ActivatePowerMode.onChange (file:///C:/Users/Administrator/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:48:6)
    at Emitter.module.exports.Emitter.emit (C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\event-kit\lib\emitter.js:86:11)
    at TextBuffer.module.exports.TextBuffer.applyChange (C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:645:20)
    at TextBuffer.module.exports.TextBuffer.undo (C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:732:16)
    at C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\src\text-editor.js:1136:31
    at TextEditor.module.exports.TextEditor.mergeSelections (C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\src\text-editor.js:2017:18)
    at TextEditor.module.exports.TextEditor.avoidMergingSelections (C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\src\text-editor.js:1999:35)
    at TextEditor.module.exports.TextEditor.undo (C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\src\text-editor.js:1134:12)
    at TextEditor.commandRegistry.add.stopEventPropagation.core:undo (C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\src\register-default-commands.js:223:21)
    at atom-text-editor.newCommandListeners.(anonymous function) (C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\src\register-default-commands.js:554:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:260:29)
    at C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\src\command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:533:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:356:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\src\window-event-handler.js:99:36)
    at HTMLDocument.<anonymous> (C:\Users\Administrator\AppData\Local\atom\app-1.2.4\resources\app.asar\src\window-event-handler.js:3:61)

Commands

     -4:48.7.0 application:new-file (atom-text-editor.editor.is-focused)
     -4:47.3.0 core:paste (atom-text-editor.editor.is-focused)
     -4:45.7.0 fuzzy-finder:toggle-git-status-finder (atom-text-editor.editor.is-focused)
     -4:44.8.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -4:44.8.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -4:44.1.0 atom-beautify:beautify-editor (atom-text-editor.editor.is-focused)
     -4:41 editor:consolidate-selections (atom-text-editor.editor.is-focused)
     -4:41 core:cancel (atom-text-editor.editor.is-focused)
     -4:39 grammar-selector:show (atom-text-editor.editor)
     -4:34.6.0 atom-beautify:beautify-editor (atom-text-editor.editor.is-focused)
  8x -4:20.5.0 core:undo (atom-text-editor.editor.is-focused)
     -4:09.6.0 core:backspace (atom-text-editor.editor.is-focused)
     -4:08.1.0 atom-beautify:beautify-editor (atom-text-editor.editor.is-focused)
     -4:06.5.0 core:save (atom-text-editor.editor.is-focused)
  2x -0:23.8.0 atom-beautify:beautify-editor (atom-text-editor.editor.is-focused)
  4x -0:20.2.0 core:undo (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "solarized-dark-syntax"
    ],
    "disabledPackages": [
      "typewriter-sounds"
    ]
  }
}

Installed Packages

# User
activate-power-mode, v0.3.2
atom-beautify, v0.28.19
atom-handlebars, v1.2.0
color-picker, v2.0.13
emmet, v2.3.15
git-plus, v5.6.6
jQuery, v1.2.0
jquery-snippets, v11.0.0
keyboard-sounds, v0.2.0
minimap, v4.16.2
pigments, v0.19.1

# Dev
No dev packages

Seems Can not cooperate with vim-mode

I have only two plugins: activate-power-mode, and vim-mode.
But active-power-mode has 1 deprecation:
This method is deprecated on the model layer. Use TextEditorElement::pixelPositionForScreenPosition instead.

This situation is if I disable vim-mode, and enable activate-power-mode, it works, just the animation is not so fluency, but if I open the two plugins together, the activate-power-mode just doesn't work.

Does anyone the same problem?

Something wrong

I use Chorme as my default explorer on Windows 7 os,while i active this packages,it only shake my window ,no “bubble" pump~~ hope this could be solved

Uncaught TypeError: Cannot read property 'clearRect' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.2.4
System: Mac OS X 10.11.1
Thrown From: activate-power-mode package, v0.3.2

Stack Trace

Uncaught TypeError: Cannot read property 'clearRect' of undefined

At /Users/jackwang/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:101

TypeError: Cannot read property 'clearRect' of undefined
    at Object.module.exports.ActivatePowerMode.drawParticles (/Users/jackwang/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:101:13)

Commands

     -9:03.5.0 core:paste (atom-text-editor.editor.mini.is-focused)
     -9:03.1.0 core:confirm (atom-text-editor.editor.mini.is-focused)
  6x -6:22 activate-power-mode:toggle (div.panels)

Config

{
  "core": {
    "themes": [
      "atom-material-ui",
      "one-dark-syntax"
    ]
  }
}

Installed Packages

# User
activate-power-mode, v0.3.2
atom-jade, v0.3.0
atom-material-ui, v1.0.3
javascript-snippets, v1.0.0
jquery-snippets, v11.0.0
linter-sass-lint, v0.4.1

# Dev
No dev packages

Uncaught Error: Cannot find module 'lodash.throttle'

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.2.4
System: Unknown Windows Version
Thrown From: activate-power-mode package, v0.3.2

Stack Trace

Uncaught Error: Cannot find module 'lodash.throttle'

At module.js:338

Error: Cannot find module 'lodash.throttle'
    at Module._resolveFilename (module.js:336:15)
    at Function.Module._resolveFilename (D:\Atom\resources\app.asar\src\module-cache.js:383:52)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (file:///C:/Users/lizilin/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:1:12)
    at Object.<anonymous> (file:///C:/Users/lizilin/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee:1:1)
    at Module._compile (module.js:434:26)
    at Object.defineProperty.value [as .coffee] (D:\Atom\resources\app.asar\src\compile-cache.js:190:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Package.module.exports.Package.requireMainModule (D:\Atom\resources\app.asar\src\package.js:661:34)
    at Package.module.exports.Package.activateConfig (D:\Atom\resources\app.asar\src\package.js:188:14)
    at PackageDetailView.module.exports.PackageDetailView.activateConfig (D:\Atom\resources\app.asar\node_modules\settings-view\lib\package-detail-view.js:215:26)
    at PackageDetailView.module.exports.PackageDetailView.completeInitialzation (D:\Atom\resources\app.asar\node_modules\settings-view\lib\package-detail-view.js:158:12)
    at PackageDetailView.module.exports.PackageDetailView.loadPackage (D:\Atom\resources\app.asar\node_modules\settings-view\lib\package-detail-view.js:170:21)
    at PackageDetailView.module.exports.PackageDetailView.initialize (D:\Atom\resources\app.asar\node_modules\settings-view\lib\package-detail-view.js:145:19)
    at PackageDetailView.View [as constructor] (D:\Atom\resources\app.asar\node_modules\atom-space-pen-views\node_modules\space-pen\lib\space-pen.js:184:25)
    at PackageDetailView.ScrollView [as constructor] (D:\Atom\resources\app.asar\node_modules\atom-space-pen-views\lib\scroll-view.js:12:47)
    at new PackageDetailView (D:\Atom\resources\app.asar\node_modules\settings-view\lib\package-detail-view.js:38:54)
    at D:\Atom\resources\app.asar\node_modules\settings-view\lib\settings-view.js:269:22
    at SettingsView.module.exports.SettingsView.getOrCreatePanel (D:\Atom\resources\app.asar\node_modules\settings-view\lib\settings-view.js:274:19)
    at SettingsView.module.exports.SettingsView.showPanel (D:\Atom\resources\app.asar\node_modules\settings-view\lib\settings-view.js:320:24)
    at space-pen-div.<anonymous> (D:\Atom\resources\app.asar\node_modules\settings-view\lib\package-card.js:262:83)
    at space-pen-div.jQuery.event.dispatch (D:\Atom\resources\app.asar\node_modules\jquery\dist\jquery.js:4435:9)
    at space-pen-div.elemData.handle (D:\Atom\resources\app.asar\node_modules\jquery\dist\jquery.js:4121:28)

Commands

     -3:29.4.0 core:backspace (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ],
    "disabledPackages": [
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode",
      "activate-power-mode"
    ]
  }
}

Installed Packages

# User
No installed packages

# Dev
No dev packages

Cannot toggle power mode off

Pressing ctrl+alt+o activates power mode, but doe snot deactivate it. I had to disable the package to deactivate it.

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.