Skip to content
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

Set mark at index N #617

Open
shellwhale opened this issue Jul 11, 2024 · 0 comments
Open

Set mark at index N #617

shellwhale opened this issue Jul 11, 2024 · 0 comments

Comments

@shellwhale
Copy link

shellwhale commented Jul 11, 2024

The docs show how to access the N mark.

vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
vim.keymap.set("n", "<C-t>", function() harpoon:list():select(2) end)
vim.keymap.set("n", "<C-n>", function() harpoon:list():select(3) end)
vim.keymap.set("n", "<C-s>", function() harpoon:list():select(4) end)

But how do I set the N mark with a shortcut ? For example if I'd wanted to set the current file to be at index 3 I would do something like this :

vim.keymap.set("n", "<C-M-s>", function() harpoon:list():set(3) end)

Is that possible? I'm coming from vscode-harpoon and there was a nice command for it. I had setup like this

CTRL + ALT + 1 mark current file at index 1
CTRL + ALT + 2 mark current file at index 2
CTRL + ALT + 3 mark current file at index 3
...
ALT + 1 go to file at index 1
ALT + 2 go to file at index 2
ALT + 3 go to file at index 3

@shellwhale shellwhale changed the title Replace at index Set mark at index N Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant