tranhl / find-then-jump Goto Github PK
View Code? Open in Web Editor NEWVim Easymotion inspired code navigation.
Home Page: https://marketplace.visualstudio.com/items?itemName=tranhl.find-then-jump
License: MIT License
Vim Easymotion inspired code navigation.
Home Page: https://marketplace.visualstudio.com/items?itemName=tranhl.find-then-jump
License: MIT License
Is it possible to always have vscode focusActiveEditorGroup
(not sure if thats the right command) before jumping?
My issue is, if I have the terminal focused I can start the find
and the active file annotations show up, but the jump does not work/change focus to the file.
I see two ways this could be improved
Does that makes sense? Im not familiar with writing vscode extensions but I could try to make a PR with the auto focus feature.
First of all, The extension is great. I think it's a lightweight version of vim-easymotion
The behavior I expected is that I can select to the text where I jumped. (recorded with vim-easymotion
in the vim extension)
But the behavior with this extension is that I just simply jumped without selecting.
Is this intended? Maybe a new mode should be added.
While editing TypeScript files, I have VSCode set to auto save on focus lost, and apply formatting automatically on save. Pressing the keyboard shortcut that enables Find Then Jump causes the editor to lose focus and to save. This causes Find Then Jump to close automatically right after it opens. When the file is saved before I trigger the keyboard shortcut, the extension works correctly.
Other dialogs such as the file switcher don't seem to disappear automatically when the focus is lost.
To reproduce:
Files: Auto Save
setting to onFocusChange
Editor: Format On Save
JavaScript > Format: Enable
Actual result:
The extensions appears for a split second and then disappears
Expected result:
The extension appears and stays in place
Thank you for this awesome extension!
Sometimes there's only one match on the entire screen so why not auto jump in those cases? In other words, when there's only one match on the screen (usually hinted as "a"), pressing enter will lead you there.
Hi, amazing extension!
I can't make the keybinding work if amVim or vscodevim are installed.
When I press Ctrl+; I get a notification saying:
Running the contributed command: 'findJump.activate' failed.
The issue only appears if I use it with the keyboard, if I use it from the Command Palette it works as expected.
I disabled Am Vim: Bind Ctrl Commands
but the problem persists.
I think the problem is not related with the "Ctrl", because it doesn't work with any shortcut.
Hello! Thank you for your plugin, it looks awesome, even though a lot of features still are desired.
What is a status of this plugin? Is it still supported? Bug fixes only, or maybe new features are implemented?
I've found several plugins, and of the most interesting is, unfortunately only available for Emacs ;(
https://github.com/abo-abo/avy
As the title says, an option for being able to search just forwards or just backwards, since I know what I'm looking for, why should I also search on both sides? For example, with a remap that would use: s = forward
& S = backward
.
EDIT: Also a good idea would be to change the matches options, what I mean is that when there't too many matches you start to get MAYUS, and you need to reach shift for that specific word, I would suggest more use of double words matches like fj, sk, ld, etc
, in that way you don't loose the flow, or ;
that is easier to reach, that can improve more the efficiency
This is a feature suggestion.
Something that I find myself doing is using the initiate command and then searching for a word in the document (usually something already under my cursor) to then get the jump options.
It would be cool if we could maybe add a initiateWithCurrent option that would prefill the text input with the text currently under selection and then let me jump to the matching terms.
I might be able to submit a PR if I find the time. I like the flow of this extension a lot
Place cursor at N (line 2), then try to jump to the last "Navbar" at the bottom. This is not getting selected as jump point when I type "n", see image.
Sample HTML
<template>
<Navbar />
</template>
<script lang="ts">
import { defineComponent } from "vue";
import Navbar from "@/components/Navbar.vue"; // @ is an alias to /src
export default defineComponent({
name: "Home",
components: {
Navbar
}
});
</script>
so I'm trying to select all characters without pressing right after the selection is completed.
I've tried to fork the project and change some codes. but unfortunately, I'm not good at type script or java script.
For example, there are many character 'a' and I want to jump to one of them. But sometime the plugin only show a part of match letters position when I invoke findThenJump.initiate.
Sometimes my code overlaps the tag letter and it's hard to distinguish them.
This might be caused by the intelisence because this doesn't happen when I disable it.
Is it possible to put the tags in front of everything in the canvas?
I don't know anything about VSCode APIs, but specifying the DecorationOptions
parameter of setDecorations
API might be the solution.
When jumping with selection, the resulting selection starts at the cursor's current position. This means that if you have already selected some text, that selection's anchor position is overridden.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.