You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What issue are you having that you need Harpoon to solve?
I am experiencing an unexpected navigation behavior when using the next and previous commands in Harpoon. When I navigate to a specific harpooned file directly from the Harpoon list, subsequent calls to next or previous do not reference the newly selected file, but rather continue from the last navigation point. This behavior can be confusing and disrupts the flow of working with multiple files.
Why doesn’t the current config help?
The current configuration of Harpoon maintains a navigation history that does not reset when a file is selected directly from the Harpoon UI. As a result, the next and previous commands continue to operate based on the last accessed file, rather than the currently displayed file. This inconsistency makes it challenging to navigate efficiently between files, especially when the user switches contexts frequently.
What proposed API changes are you suggesting?
I suggest implementing a mechanism to reset or update the navigation history whenever a file is directly selected from the Harpoon list. This could involve:
Modifying the harpoon:list():go_to(index) method to update the current navigation context after selecting a file.
Ensuring that the next and previous commands reference the new current file for navigation, rather than relying on the previous state.
By making these changes, the plugin would provide a more intuitive and cohesive navigation experience, allowing users to easily move between files in a way that reflects their current context.
The text was updated successfully, but these errors were encountered:
What issue are you having that you need Harpoon to solve?
I am experiencing an unexpected navigation behavior when using the next and previous commands in Harpoon. When I navigate to a specific harpooned file directly from the Harpoon list, subsequent calls to next or previous do not reference the newly selected file, but rather continue from the last navigation point. This behavior can be confusing and disrupts the flow of working with multiple files.
Why doesn’t the current config help?
The current configuration of Harpoon maintains a navigation history that does not reset when a file is selected directly from the Harpoon UI. As a result, the next and previous commands continue to operate based on the last accessed file, rather than the currently displayed file. This inconsistency makes it challenging to navigate efficiently between files, especially when the user switches contexts frequently.
What proposed API changes are you suggesting?
I suggest implementing a mechanism to reset or update the navigation history whenever a file is directly selected from the Harpoon list. This could involve:
By making these changes, the plugin would provide a more intuitive and cohesive navigation experience, allowing users to easily move between files in a way that reflects their current context.
The text was updated successfully, but these errors were encountered: