code icon indicating copy to clipboard operation
code copied to clipboard

Indicator for Vim plugin loaded/mode desirable

Open jeremypw opened this issue 5 years ago • 2 comments

Problem

The Vim plugin gives no indication (a) that it is loaded or (b) what mode it is in

Proposal

When the Vim plugin is loaded, display an icon in the headerbar in the same way the Terminal plugin does. The icon should change depending on whether the plugin is in COMMAND, INSERT or REPLACE mode

Prior Art

The Vim app shows the words "INSERT" or "REPLACE" on the last line when not in command mode. Most other GUI apps have some kind of status line showing the mode.

jeremypw avatar Feb 06 '21 18:02 jeremypw

FWIW GtkSourceView has native support for vim emulation which goes a lot further than this plugin. I would suggest using that (GtkSourceVimIMContext). You can then bind the command-bar-text and command-text properties to labels and get the same sort of bottom bar that Vim has (including the requested INSERT, REPLACE, etc).

chergert avatar Sep 09 '25 22:09 chergert

@chergert Thanks for the suggestion! We are currently using gtksourceview-4 whereas GtkSourceVimIMContext is int gtksourceview-5. We will certainly look to lose unnecessary plugins like the vim one when the Gtk4 port takes place.

jeremypw avatar Sep 10 '25 09:09 jeremypw