Giter VIP home page Giter VIP logo

kjump's Introduction

KJump

A simplify plugin ported from vim-EasyMotion plugin for Intellij Platform IDE. Can be integrated with IdeaVim. Support character, word, line jump.

Usage

There are no default activated shortcuts. You can assign KJump activation shortcuts in Settings->Keymap->KJump menu, such as <c-,> <c-;> etc, or integrate with IdeaVim by add below section in ~/.ideavimrc:

nmap <leader><leader>s :action KJumpAction<cr>
nmap <leader><leader>w :action KJumpAction.Word0<cr>
nmap <leader><leader>l :action KJumpAction.Line<cr>
// more action see table below
Name Action Desc
KJump KJumpAction Input 1 character and jump to any same character.
KJump Char 2 KJumpAction.Char2 Input 2 character and jump to any same character.
KJump Word 0 KJumpAction.Word0 Jump to any word.
KJump Word 1 KJumpAction.Word1 Input 1 character and jump to any word start with this character.
KJump Line KJumpAction.Line Jump to any line.

kjump's People

Contributors

a690700752 avatar allsochen avatar antosha417 avatar dependabot[bot] avatar kentvu avatar quanuanc 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

Watchers

 avatar  avatar  avatar  avatar  avatar

kjump's Issues

Support Splitter mode feature

have you considered showing hints in splitter mode?
Enclosed screenshot screenshot from 2018-12-20 23 20 59.

Notice hints are only displayed on the active editor.

The idea would be to display hints on both editors and jump around easily between panes.

PS: This is amazing work. Thank you.

Add an action to search for 2 characters instead of 1

Often when searching with 1 character you then have to press 2 totally random characters to move.
It would often be easier to search for 2 characters, so that you only have to press 1 character to then move to the desired position.

Make jump chars different color if the jump needs 2 chars

Would be nice if the color of the jump characters would be different (and also user configurable) if the jump needs 2 characters.

For example in Vim, with vim-easymotion if I only need one char for the jump it's bright red, and if I need 2 chars for the jump the first of those is orange and the 2nd one is brown.

Here's an example of how it looks with vim-easymotion:
Example image

Version Incompatibility

I'm getting this issue when I try to install plugin from disk using the .jar file:

Plugin 'KJump' (version '1.0.1') is not compatible with the
current version of the IDE, because it requires build 203.* or
older but the current build is IC-232.9559.62

(I'm trying to get the update that fixes the visual mode selection problem.)

Can support Chinese?

There is an easymotion-chs can support the Chinese, easymotion-chs Can kjump support Chinese? The file is herefileLink

Here's a Chinese sentence.
众所周知,中文是没有空格的,要是能有一个插件能支持中文光标跳转就好了!

if you press kjump z(The initials of a Chinese character) ,The cursor will jump to "周" “知” “中” “支” front of these characters

vim1
vim2

Can't type text containing prefix key

I need to search for words using the \b word boundary using Jetbrains' built-in search panel. I can't enter the "\" character, because this is intercepted and interpreted as my KJump prefix key.

I also just realized I can't even type a "" when in IdeaVim insert mode.

Search for curly bracket isn't working for certain case

When in KJumpAction.Word1 mode and then search for curly bracket, the results don't contain for curly bracket with surrounded by spaces but it shows curly bracket with word before.
For example:
{ } <==no result
word} <==result.

Exception occur after update IntelliJ to version 2024.1

stack trace show below

com.intellij.diagnostic.PluginException: `ActionUpdateThread.OLD_EDT` is deprecated and going to be removed soon. 'com.werfad.Actions$Char2Action' must override `getActionUpdateThread` and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: com.werfad]
	at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23)
	at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90)
	at com.intellij.diagnostic.PluginException.reportDeprecatedUsage(PluginException.java:125)
	at com.intellij.openapi.actionSystem.ActionUpdateThreadAware.getActionUpdateThread(ActionUpdateThreadAware.java:21)
	at com.intellij.openapi.actionSystem.AnAction.getActionUpdateThread(AnAction.java:199)

Crashed my intellij

I have version

IntelliJ IDEA 2017.2.5
Build #IC-172.4343.14, built on September 26, 2017
JRE: 1.8.0_152-release-915-b12 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6

With KJump installed my IntelliJ IDEA immediately crashes. What version of IntelliJ is KJump known to work with?

Visual selection issue

If I run a KJumpAction.Line in visual mode I am able to move to the line that I want to move to, but the visual selection doesn't move with me. If I do some other built in movement afterwards such as j or k then the visual selection start to work as intended.

Version Incompatibility - Rider

Using Rider 2024.1. The version that gets installed from the marketplace is 1.0.0 If I try to install 1.0.2 from disk I get:

Plugin 'KJump' (version '1.0.2') is not compatible with the current version of the IDE, because it requires build 233 .* or older but the current build is RD-241.14494.307

KJump caused IDE Internal Errors

I'm using Rider 2024.1. The IDE reported the exception below 3 times yesterday.

com.intellij.diagnostic.PluginException: ActionUpdateThread.OLD_EDTis deprecated and going to be removed soon. 'com.werfad.Actions$Word0Action' must overridegetActionUpdateThreadand chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: com.werfad] at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23) at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90) at com.intellij.diagnostic.PluginException.reportDeprecatedUsage(PluginException.java:125) at com.intellij.openapi.actionSystem.ActionUpdateThreadAware.getActionUpdateThread(ActionUpdateThreadAware.java:21) at com.intellij.openapi.actionSystem.AnAction.getActionUpdateThread(AnAction.java:199)

New release?

Hi,

Looks like there have been several updates since the 1.0 release in August 2019. Any plans to make a new release available to the marketplace?

Thanks!

Prioritise search keys

Hello! thought it could be a cool idea to be able to set which search keys to include/prioritise - Such as the functionality in vim easymotion you can get by setting g:EasyMotion_keys

I find this useful as I can get better speed when sticking with home row keys/keys that my index fingers reach.

Case insensitivity

Would it be possible to search for items on a case insensitive basis? This is a great plugin and I love the speed of it! I am a big fan.

Feature

Hi,
thank you for the plugin, it is very cool and fast.
Please tell me if you are considering adding a new functionality. The search for the start of all the words, it will be very helpful.

Show visual indicator that KJump is waiting for input

Hello, thanks for your work on this plugin. Would you be open to adding a visual indicator showing that KJump is waiting on me to type something when I use the action KJumpAction.Word1?

When I use flash in neovim, The screen goes gray and it's clear it's waiting on me to type something.

In intellij, I'm sure that would be pretty difficult, but I'd be happy if there was a notification or a coloring of the status bar or anything that makes it clear that I need to type something.

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.