-
-
Notifications
You must be signed in to change notification settings - Fork 378
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
Toggling harpoon list should highlight current file #384
Comments
That would indeed be very helpful! |
Check it out :) #574 |
I've created a small plugin that adds this functionality. The actual code is so small that you can copy it to your config and save yourself a dependency. |
Thanks, I love it! |
Nice, thanks! Quick tip, on Windows, add a backslash escape to make sure files in child directories are highlighted: local current = Path:new(ctx.current_file)
:make_relative(vim.uv.cwd())
:gsub("\\", "\\\\") |
Thanks, I had that in my original version for Harpoon 1, but it seems it got lost in the transition. |
If you have 5 files in the harpoon list and you have file 4 selected, it would be nice if when toggling harpoon list open, file 4 is highlighted instead of the first one.
This would make it easy to open list, go down one or two items then select that one.
If the buffer in the current window is not in harpoon list, then highlight the first item.
The text was updated successfully, but these errors were encountered: