New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global marks throwing errors and not reusing existing tabs #1223
Comments
+1 |
It's unfortunate that VSCode doesn't have native bookmarks that we could leverage for this feature, and VSCode doesn't provide an API to jump to a specific line in a file while re-using opened tabs to do so, as far as I can tell. |
I wonder if we can learn something from this bookmark extension https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks |
@dangkhoipro Will support vim native global marks in the future, but using other extensions is also a great option. You can invoke their commands through mappings. |
@dangkhoipro No, it's closed source and you cannot reproduce Vim behavior closely in this one. Since it is closed source, there is no hope in modifying the extension so that it works with vim-alike mappings. |
I'm looking forward to it, thanks! |
This extension seems to mirror Vim behavior quite well: It's still working like a charm for me, despite being 5 years old. @dangkhoipro @martin-braun |
@spacian ditto, using this one and working like a charm. I did have to add this to my settings.json for it to work almost like on neovim: {
"key": "'",
"command": "codemarks.listMarks"
},
{
"key": "m",
"command": "codemarks.createMark",
"when": "editorTextFocus"
},
{
"key": "cmd+;",
"command": "-codemarks.createMark",
"when": "editorTextFocus"
},
|
@spacian But it has no support for capital letters that will allow you to jump to a different file, or has it? Will @Wozacosta Thanks for the bindings. |
@martin-braun it has all the features you want AFAIK. I'm using it specifically with The main function you are probably looking for is A bunch of handling of file changes (which change mark or jump point positions) as well as file renames and deletions are handled rather naive in |
NVIM v0.9.0
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
vscode-neovim v0.0.97
VSCode Version: Tried multiple; 1.78.2, 1.79.0-insider
Steps to reproduce:
Place a global mark anywhere in the second opened tab, e.g.
mA
Move back to the first opened tab
Try to move to the placed mark, e.g.
'A
Expected: The existing tab opens up, placing the cursor on the marked line
Actual: The file will be opened in a new (untitled) tab, cursor placed on top
Close this untitled tab
Manually click on the second tab (the one where you initially placed the global mark)
Two errors are shown:
The text was updated successfully, but these errors were encountered: