Comments (7)
Added an option to select jump label assignment algorithm (i think what you prefer may be approximated with 'ViewportRelative' mode).
You may also consider playing with caret sensitivity option and staying with CaretRelative algo. It will help with assigning shortest movements near caret position, while maintaining stable labels for small caret position changes.
Please let me know if it solved the issue.
Also improved performance significantly.
from peasymotion.
Thanks for your feedback!
- Between first and second activation is cursor position the same?
- Which cancelation method do you use? ESC key? Arrows key? Something else?
- Are you using VsVim or ViEmu plugins or any other that may affect cursor position?
from peasymotion.
I just noticed that it only happens when the cursor position is different, is there any reasoning for that?
from peasymotion.
There is,
jump-labels are assigned using distance to cursor. Which is computed as abs(currentCursorPosition - jumpLabelPosition). This is done to assign "shortest" labels (if possible even "single" letter jumps) closer to current cursor position:
[hj] word1 [hk] word2 [ha] word3 [hs] word4
**[a]**word5 #word6 **[b]**word7 [c] word8
[kl] word9 [kj] word10 [kh] word11 [kf] word12
[xx] <- jump label
# - cursor
[a][b][c] - jump labels closest to cursor.
I may consider adding option to switch between current assignment logic and following one:
jump labels will be assigned consequently from top to bottom of visible text, ignoring current cursor position. Will this option help?
from peasymotion.
Yeah, multiple configuration options sound great, since the hard job is already done 😄
I usually use this from vscode and it works great: vscode-jumpy
from peasymotion.
Ok, gona add option for this
from peasymotion.
This sounds great!
Thanks
from peasymotion.
Related Issues (20)
- What about InvokePeasyMotionTwoCharJumpTextSelect? HOT 1
- Tools.InvokePeasyMotionLineJumpToWordBegining continues to capture input after the "jump position letter" has been entered. HOT 7
- Merge all jump strategies into single one HOT 4
- Esc key not working HOT 2
- How to do one char jump? HOT 2
- BUG: PM changes document order in document tabs HOT 5
- BUG: Press shorcut 'jump to document tab' twice in a row
- Ergomics: Text highlight, then cancel, moves caret. It shouldn't HOT 1
- Visual Studio 2022 support HOT 20
- visual studio 2022 support notification HOT 2
- Feature request: please support InvokePeasyMotionOneCharJump HOT 5
- Tools.InvokePeasyMotionLineJumpToWordEnding puts cursor to the left of the last letter in the target word HOT 2
- will charge the Windows Kits\10\Include\10.0.17763.0\um\d2d1helper.h document HOT 1
- Doesn't work in latest version of VS 2022 HOT 1
- Fake Jumps HOT 6
- Can see the update in the gallery, but update doesn't stick. HOT 5
- Bugs with updated one char jump HOT 1
- Tested update 1.12 HOT 3
- Feature Request: Visual indicator for one char jump
- Feature Request support for Arm64 (at least on Visual Studio 2022)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from peasymotion.