rgieseke / textredux

Text-based interfaces for Textadept
http://rgieseke.github.io/textredux/
Other
59 stars 11 forks source link

Allow default mode to be overridden. #36

Closed chadvoegele closed 6 years ago

chadvoegele commented 6 years ago

Hi,

I currently use a vi mode for Textadept that has a default key mode of 'normal' rather than nil ('insert'). With this diff below, I can override the default mode so I am put in 'normal' mode rather than nil ('insert') mode by using textredux.core.buffer.DEFAULT_MODE = 'normal' in my init.lua. I notice this in particular on file open.

Please let me know what you think.

Thanks! Chad

rgieseke commented 6 years ago

Otherwise "DEFAULT_MODE" is just nil so nothing changes for anyone else, right?

Seems reasonable to me.

chadvoegele commented 6 years ago

Ya, that's correct!

rgieseke commented 6 years ago

Awesome, thanks a lot!

chadvoegele commented 6 years ago

Thanks!