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

Feature Request: Always show mode #4653

Open
AAR072 opened this issue Mar 18, 2025 · 8 comments
Open

Feature Request: Always show mode #4653

AAR072 opened this issue Mar 18, 2025 · 8 comments

Comments

@AAR072
Copy link

AAR072 commented Mar 18, 2025

Greetings contributors, thank you for your time in reading this.

Is there a way to always show the mode that I am in (visual, normal, insert, etc). There is a bar on the bottom when in insert and normal mode, but there is nothing for normal mode. I often find myself spamming escape to leave insert mode. Is there a way to enable it on my own? Otherwise, I think this would be a useful feature.

As far as I can see, this shouldn't be a time-consuming change as there is already the statuses for other modes. If someone can point me towards, where the relevant code is, I would be happy to do it myself.

Thanks.

@UncleSnail
Copy link
Contributor

I do not think this is currently possible, but if there is consensus that we want this feature, I'd be willing to implement it or help point you in the right direction/give code reviews.
I personally wouldn't use this feature, but if you want to do the coding anyway, you could implement it, make a pr, and see what happens. If you want to avoid coding for something that won't get merged, then you could wait to see if there's more interest. You could also manage your own fork, which isn't so hard. That's what I've been doing for all the features I want. You would write the feature in your own fork anyway. So even if you write the change and it isn't merged into the main project, you could use it in a fork.

@Darkle
Copy link

Darkle commented Mar 20, 2025

It's possible for extension icons to have a "Badge". This could be used to show a N when in normal mode and an I when in insert mode and so on.

So you could then pin the extenion icon to your browser toolbar and just glance up at the extension icon and you'd know what mode you were in.

https://developer.chrome.com/docs/extensions/reference/api/action#badge

@AAR072
Copy link
Author

AAR072 commented Mar 20, 2025 via email

@UncleSnail
Copy link
Contributor

I personally really like the extension badge idea. Having an option to make the extension badge change based on mode would be rather intuitive, and it would ensure that we would never be covering anything on the webpage, which is something we would need to consider with any other solution.
And I don't think needing to glance up to see the mode is so far-fetched. In vim/nvim the status bar is at the bottom, so you need to glance down to see the mode. Either way, you are going to need to look somewhere else (ie, you need to glance somewhere), unless we use something that is so obvious it is always visible, like a red border around the window when in insert mode, and that isn't a good default, so if we want users to be able to do that, we would need to allow for them to add custom styles/js for each mode, which I don't think is in scope.
In other words, I think the badge idea actually could be pretty good, unintrusive, and require minimal changes compared to the considerations of other options.

@AAR072
Copy link
Author

AAR072 commented Mar 20, 2025 via email

@UncleSnail
Copy link
Contributor

Couldn't we put the normal status there?

Yes, indeed we could.

It makes sense. But doesn't insert mode show the text on the bottom?

I will note that insert mode isn't always shown at the bottom. I almost never see it, because I don't normally manually enter insert mode. I would say technically whenever a text box is selected, we are in insert mode. So it wouldn't be as simple as just displaying a "normal mode" label whenever the "insert mode" label isn't shown.

@AAR072
Copy link
Author

AAR072 commented Mar 20, 2025

Couldn't we put the normal status there?

Yes, indeed we could.

It makes sense. But doesn't insert mode show the text on the bottom?

I will note that insert mode isn't always shown at the bottom. I almost never see it, because I don't normally manually enter insert mode. I would say technically whenever a text box is selected, we are in insert mode. So it wouldn't be as simple as just displaying a "normal mode" label whenever the "insert mode" label isn't shown.

Is there a var tracking if we are in normal and are not sending inputs? If there was, the label implementation would be trivial. If not, I can understand that it could get annoying. Nevertheless, tracking such a thing would be required for the extension icon idea as well.

@UncleSnail
Copy link
Contributor

UncleSnail commented Mar 20, 2025

I haven't looked into it, but I'm sure it wouldn't be hard to build (I'm not concerned about that). The main question is whether maintainers want it and if so, what the implementation will be.

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

3 participants