acejump / AceJump

🅰️ single character search, select, and jump
https://plugins.jetbrains.com/plugin/7086-acejump
GNU General Public License v3.0
1.23k stars 91 forks source link

First part of the label is not visible so I can't jump to some words #465

Open lj-replicate opened 2 months ago

lj-replicate commented 2 months ago

Describe the bug This issue was reported here before https://youtrack.jetbrains.com/issue/VIM-3590/Easy-motion-cant-jump-to-some-position and we identity this is a bug in AceJump plugin.

Sometimes, when using AceJump, the actual label is two-letter labels. However, the first part of the label is not visible. So I fail to jump to words associating with these labels.

To Reproduce Steps to reproduce the behavior:

  1. Have a test.scss file like below:

    
    .container {
    
    background-color: var(--color-grey-light-2);
    
    box-shadow: var(--shadow-dark);
    
    margin: 8rem auto;
    
    max-width: 120rem;
    
    min-height: 50rem;
    
    @media only screen and (max-width: $bp-largest) {
    
    margin: 0;
    
    }

}

.header {

align-items: center;

background-color: #ffffff;

border-bottom: var(--line);

display: flex;

font-size: 1.4rem;

height: 7rem;

justify-content: space-between;

}


2. Use `Start AceJump in All Words After Caret Mode` action, press `I` in order to jump to `.header`.

**Expected behavior**
Jump to `.header`.

**Actual behavior**
`I` highlighting in .header disappears and it shows highlights for another word `[i]tem`.

**Screenshots**

![image](https://github.com/user-attachments/assets/f1cfab20-566b-4bc5-9660-5340700d1408)

After pressing `I`:
![image](https://github.com/user-attachments/assets/d9c66c76-29a4-45fd-b45d-28fc115bc17f)

https://github.com/user-attachments/assets/a49b03c3-ad04-4af3-9e3f-ae838f735f43

**Desktop (please complete the following information):**
 - OS: Linux
 - IDE and version: IDEA 2024.2
 - AceJump version: 3.8.19

**Additional context**
The actual label is not `I`, but some two-letter labels (`KI`). However, the first part of the label is not visible. If I put a few whitespaces in front of the `.header,` I can see the full label.

![image](https://github.com/user-attachments/assets/2deee472-89ba-452d-bda9-776c684242f6)
lj-replicate commented 2 months ago

The above comment seems a spam. Please don't try to download any files from the above comment. Also, it has similar avatar to me but its no me (reporter).

ReHoss commented 1 month ago

I also have this bug

image