Emacs keybindings in spyder 2.3?

1,522 views
Skip to first unread message

GaryP

unread,
Feb 14, 2014, 9:49:04 AM2/14/14
to spyd...@googlegroups.com
I saw a post in another forum (I think it was the Anaconda forum) suggesting that v. 2.3 might have Emacs keybindings.  I downloaded 2.3 beta, but can't find them.  Do they exist in 2.3, and if so, how do I enable them.

Simple emacs keybindings (beginning of line,  kill to end of line, up line, down line, etc)  is important to me.  I have over 20 years of muscle memory that I don't want to bother changing.

-gary

Carlos Córdoba

unread,
Feb 14, 2014, 10:20:37 AM2/14/14
to spyd...@googlegroups.com
Hi,

I'm currently refactoring our shortcuts machinery, which will let us
easily add new shortcut schemes in the near future (2.3.1 or 2.3.2). But
right now we don't have support for Emacs/Vim keybindings.

Cheers,
Carlos

El 14/02/14 09:49, GaryP escribió:
> --
> You received this message because you are subscribed to the Google
> Groups "spyder" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to spyderlib+...@googlegroups.com.
> To post to this group, send email to spyd...@googlegroups.com.
> Visit this group at http://groups.google.com/group/spyderlib.
> For more options, visit https://groups.google.com/groups/opt_out.

Diego Fernandez

unread,
Nov 4, 2014, 1:49:21 PM11/4/14
to spyd...@googlegroups.com
Hey Carlos,

Any development on this? I'd really like to see this as well... it's pretty hard to work on spyder without this, but I love many of the other features!

Carlos Córdoba

unread,
Nov 4, 2014, 6:06:45 PM11/4/14
to spyd...@googlegroups.com
Hi,

Sorry to give you bad news. I refactored our shortcuts support, so it should be far more easier to introduce a full set of new keybindings,
but there hasn't been any progress on this so far.

I think Steven Sylvester was working on this some time ago. Steven, do you have time to resume your work and send a pull request for 2.4?

Cheers,
Carlos

El 04/11/14 a las 13:49, Diego Fernandez escribió:
For more options, visit https://groups.google.com/d/optout.

Steven Silvester

unread,
Nov 5, 2014, 5:04:17 PM11/5/14
to spyd...@googlegroups.com
I'd love to get this included in 2.4.  It would only include the basic navigation commands to start (essentially what you'd get at a bash command line). 

Regards,
Steve

Carlos Córdoba

unread,
Nov 5, 2014, 7:10:18 PM11/5/14
to spyd...@googlegroups.com
Great! What do you mean by basic navigation commands? What about C-x-s, C-x-f and friends? Not to put pressure on you but I think we couldn't announce Emacs keybindings without those, don't you think? :-)

I hope to see your PR soon because I'm an Emacs user myself (although being introduced to computers with Win 95, I have to run it in cua mode :-)

Cheers,
Carlos

El 05/11/14 a las 17:04, Steven Silvester escribió:

Steven Silvester

unread,
Nov 5, 2014, 7:30:03 PM11/5/14
to spyd...@googlegroups.com
I'm expressly *not* signing up to implement a full emacs emulator, including a kill ring, etc.  I had merely added a few extra commands for line navigation, the ability to override C-a, and a simple way to toggle between the default keybindings and whichever emacs ones were implemented. C-x-a and C-x-f could be included in that toggle. 

Regards,
Steve


Sent from Mailbox


--
You received this message because you are subscribed to a topic in the Google Groups "spyder" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spyderlib/P4tmHqrLdGw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spyderlib+...@googlegroups.com.

Steven Silvester

unread,
Nov 5, 2014, 10:31:22 PM11/5/14
to spyd...@googlegroups.com
Hmm, perhaps the first thing that needs to be done is to allow the user to actually type in the keyboard shortcut in the Keyboard preferences panel.   Right now there is no way to specify a shortcut like C-x-s.  I found an example of how to do it here: http://doc.qt.digia.com/qq/qq14-actioneditor.html.

Diego Fernandez

unread,
Nov 6, 2014, 6:19:25 PM11/6/14
to spyd...@googlegroups.com
That would be awesome! That's really the main functionality that I would want

You received this message because you are subscribed to a topic in the Google Groups "spyder" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spyderlib/P4tmHqrLdGw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spyderlib+...@googlegroups.com.

Carlos Córdoba

unread,
Nov 6, 2014, 7:26:32 PM11/6/14
to spyd...@googlegroups.com
Absolutely, and sorry if there was any confusion in my last post. We're just talking about keyboard shortcuts and no more. This is just to help people with their muscle memory :-)

Cheers,
Carlos

El 05/11/14 a las 19:30, Steven Silvester escribió:

Michael Kamal

unread,
Apr 16, 2015, 6:09:33 PM4/16/15
to spyd...@googlegroups.com
Hi Steven,  

Did you ever find a way to let users define their own keyboard short cuts?  (To define at least some of the emacs bindings?)
Thanks
Mike

Carlos Córdoba

unread,
Apr 16, 2015, 7:34:36 PM4/16/15
to spyd...@googlegroups.com
Hi,

There is an open pull request that adds Emacs keybindings to Spyder:

https://github.com/spyder-ide/spyder/pull/2217


Cheers,
Carlos

El 16/04/15 a las 17:09, Michael Kamal escribió:
--

Steven Silvester

unread,
Apr 16, 2015, 8:19:56 PM4/16/15
to spyd...@googlegroups.com
Hi Michael,

I have yet to find a good way to allow the user to enter the shortcut, but the referenced pull request adds some of the terminal-like commands (Ctrl-P and friends).

Regards,

Steve

Michael Kamal

unread,
May 8, 2015, 9:56:02 AM5/8/15
to spyd...@googlegroups.com
Thanks Carlos, Steve -- this is very useful!

Tim Herfurth

unread,
Aug 16, 2018, 10:28:02 AM8/16/18
to spyder
They still don't exist in spyder 3, right? Or did I miss it?

best

Carlos Córdoba

unread,
Aug 16, 2018, 10:28:49 AM8/16/18
to spyd...@googlegroups.com
No, they still don't exist, sorry.


Cheers,
Carlos

El 16/08/18 a las 04:09, Tim Herfurth escribió:
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To post to this group, send email to spyd...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages