vim-vixen icon indicating copy to clipboard operation
vim-vixen copied to clipboard

Visual Indication of current mode?

Open YoloClin opened this issue 4 years ago • 3 comments

I'm opening this issue because:

  • [ ] I'll report a bug
  • [X] I'll propose a new feature

Description

I'd really like a visual indication of what state a window is in, if I pick a random window in a random state and hit f (or any other vim-vixen hotkey), I have no idea if the window is going to list a bunch of URLs, type the char 'f' into a text input box or do something else.

It would be nice if there was a way to visually indicate what will happen if the browser receives key events. I think a nice way would be a CSS-customizable window border, off by default if that's everyone else's preference.

Failure Information (for bugs)

Steps to Reproduce

Open a random tab in a random state, press 'f', you cannot anticipate what the behavior will be.

System configuration

  • Operating system: Ubuntu
  • Firefox version: Latest or thereabouts
  • Vim-Vixen version: 0.27

Console logs

N/A

YoloClin avatar Apr 18 '20 01:04 YoloClin

I'd be open to actually coding it myself if someone was able to give me a pointer in how to determine state changes - I have a feeling there's a bunch of nasty ways of doing it that wouldn't end well and/or end up in a mess, so having that kind of input would be super handy!

YoloClin avatar Apr 23 '20 10:04 YoloClin

I've answered my own issue by implementing this feature by binding the DOMContentLoaded and blur/focus events. I'll submit a PR in a few weeks time once I've ironed out a few bugs / get time.

YoloClin avatar May 08 '20 23:05 YoloClin

I'd also like to see this implemented. I'm fairly new to vim, only a week in, so a visual would be very helpful.

LeonT-A avatar Aug 01 '20 16:08 LeonT-A