Re: [Builder] Emacs mode and keybindings
- From: Alexander Larsson <alexl redhat com>
- To: Christian Hergert <christian hergert me>
- Cc: builder-list gnome org
- Subject: Re: [Builder] Emacs mode and keybindings
- Date: Tue, 03 Mar 2015 08:44:11 +0100
On mån, 2015-03-02 at 19:50 -0800, Christian Hergert wrote:
On 02/19/2015 03:05 AM, Alexander Larsson wrote:
A good place to start cleaning this up would be to move as much generic
functionality from gb-source-vim.c into generic actions and action
signals on GbSourceView so that things can be reused between different
editor emulators.
I did spend a little time this evening taking a look at what it would
take to use @binding-set in CSS to implement Vim.
The first thing we'll need to fix is GtkTextView swallows normal input.
So things like j,k,l,h is swallowed before the binding set can activate.
If you make the edit mode "modal", like:
bind "escape" { "set-mode" ("vim-command", modal) };
Then the binding set for the mode will steal all the key events until you unset the mode.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alexander larsson gmail com
He's an obese coffee-fuelled grifter on the wrong side of the law. She's
a manipulative impetuous snake charmer on the trail of a serial killer.
They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]