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

Hide label if cursor is directly within the label area #67

Open
b0o opened this issue Apr 3, 2024 Discussed in #66 · 2 comments
Open

Hide label if cursor is directly within the label area #67

b0o opened this issue Apr 3, 2024 Discussed in #66 · 2 comments
Labels
enhancement New feature or request

Comments

@b0o
Copy link
Owner

b0o commented Apr 3, 2024

Discussed in #66

Originally posted by MatejBransky April 2, 2024
Hello, thanks for the plugin 🙏 , it's really awesome. 🎉

However, I'm trying to figure out how I could keep the label even when I'm hovering over the first row and the cursor isn't on the label itself. 🤔

Is it possible in the current version already? 🙂

@b0o
Copy link
Owner Author

b0o commented Apr 3, 2024

@MatejBransky This is a feature I've wanted as well, and I've actually got an experimental implementation partially working. I will work on it more soon.

@b0o b0o added the enhancement New feature or request label Apr 3, 2024
@YoureMySoul
Copy link

Hi, my proposal for the logic could be like that in pseudocode:

if (the cursor is in the label area, i.e., stacked on top of each other):
  move the status line to the second line of the window.
else if (the cursor is in the first line of the window) and (there is text under the status line):
  move the status line to the second line of the window.
else:
  move the status line to the first line of the window.

Thank you for this pretty plugin. I was able to quickly copy some code for an element from feline.nvim with ease, which has opened up infinite possibilities for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants