Open Alexsey opened 2 years ago
Hey guys, really enjoyed this plugin prior to 2022.1, will this be fixed or is it not possible with the new API?
My Java and IDEA API knowledge are too bad to fix this in a reasonable time :( I do hope that someday @andreycizov would find some time to fix this. Meanwhile, I've written a workaround for OS X with Hammerspoon I can share
To run it just follow instructions from the official Hamerspoon docs on Hello World but use the snippet from below. Please, ask if something wouldn't work
Hey, thanks a lot for that, tried it, the script does in fact work!
It's there any alternative for this plugin or plan to update it? I roll back from 2022.1 because this 😢
@victor-falcon are you using Windows/Linux or did the Hammerspoon workaround didn't work for you?
@Alexsey I just tried it, and it works great. I never heard of Hammerspoon and I love it!
I updated the plugin source code to kotlin, changed some code, and is now working on EAP version again.
Attached plugin file. Later possibly with fork.
Unable to upload. Here: https://easyupload.io/fhigl2
Valid for 30 days.
Here is a slighlty updated version with more options:
https://eu5.easyupload.io/download/3dqvrp/5i4g0xtsrf8zdzliad20l7siqknzphe6
Even more options:
Hey everyone, I've found another plugin that does roughly the same thing and works with the latest Intellij versions, maybe someone will find it helpful so I'm sharing it https://plugins.jetbrains.com/plugin/17449-jumper (I'm not affiliated with the creator)
Here is the alternative release based on this one instead:
https://github.com/momomo/mmm.intellij.plugin.Partial/tree/master/releases
Just download the zip file and install.
Here is the alternative release based on this one instead:
https://github.com/momomo/mmm.intellij.plugin.Partial/tree/master/releases
Just download the zip file and install.
Thank you! Works like a charm. Hope the PR of @canelhasmateus will be approved soon. https://github.com/andreycizov/idea-partialnav/pull/13
Breaks in latest EAP. Need a new release.
Spent another hour to make another build:
I have published a working version of this plugin which can be used as an alternative. It is called Partial Page Scrolling
. Basically I didn't want to always download the fixed version and apply it manually in all of the IDE's I work with. It is based on this repo and does also work when the IDE is indexing.
I made some adjustments, most important to mention is that the dropdown for relative scrolling height adaption has been replaced with a normal text entry. So the user can define any percentage he/she wants instead of choosing from a predefined list.
The plugin is here https://plugins.jetbrains.com/plugin/23332-partial-page-scrolling
@andreycizov I hope this is fine and the contributions are sufficient. If not, please contact me. Thank you very much for your effort when creating this plugin: 🍻
Merry Christmas
Just installed the WebStorm 2022.1 EAP. It seems that the old API is not working anymore :(
Stacktrace
``` java.lang.NoSuchMethodError: 'boolean com.intellij.util.SystemProperties.isTrueSmoothScrollingEnabled()' at com.andreycizov.partialnav.PartialPageNavHelper.getVisibleArea(PartialPageNavHelper.java:15) at com.andreycizov.partialnav.PartialPageNavHelper.moveCaretPageUp(PartialPageNavHelper.java:22) at com.andreycizov.partialnav.PartialPageUpAction$Handler.execute(PartialPageUpAction.java:28) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.doExecute(EditorActionHandler.java:161) at com.intellij.openapi.editor.actionSystem.DynamicEditorActionHandler.doExecute(DynamicEditorActionHandler.java:63) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.lambda$execute$2(EditorActionHandler.java:192) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.doIfEnabled(EditorActionHandler.java:89) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.lambda$execute$3(EditorActionHandler.java:191) at com.intellij.openapi.editor.impl.CaretModelImpl.lambda$runForEachCaret$3(CaretModelImpl.java:312) at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:421) at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:321) at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:296) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:189) at com.intellij.openapi.editor.actionSystem.EditorAction.lambda$actionPerformed$0(EditorAction.java:89) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:219) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:174) at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:98) at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:73) at com.intellij.openapi.keymap.impl.ActionProcessor.performAction(ActionProcessor.java:65) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:576) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$doPerformActionInner$10(IdeKeyEventDispatcher.java:701) at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106) at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:95) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$doPerformActionInner$11(IdeKeyEventDispatcher.java:701) at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:265) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.doPerformActionInner(IdeKeyEventDispatcher.java:698) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:642) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:587) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:470) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:459) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:227) at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.java:788) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:734) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:433) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:801) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:432) at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:119) at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:598) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:430) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:478) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) ```