dmedvinsky / gsimplecal

Simple and lightweight GTK calendar (BSD license)
http://dmedvinsky.github.io/gsimplecal
Other
198 stars 19 forks source link

Keyboard (arrow key navigation) support #23

Closed orschiro closed 9 years ago

orschiro commented 9 years ago

Hi @dmedvinsky,

Thanks very much for gsimplecal. I frequently use it for its simplicity on Openbox.

What do you think about keyboard support, particularly arrow key navigation through the dates?

Thanks for your opinion!

Robert

dmedvinsky commented 9 years ago

Hey. Actually, if you take a look at the man page, you can see that there is a Keyboard Accelerators section which provides ways close the window and navigate through the dates.

The keys are currently hard coded, so you can't reconfigure things, but no one ever complained about those bindings, so I never really bothered to make them customizable. If you're familiar with Vi-style navigation keys, they should work for you very well.

Do they work for you or I should I leave this open to make them configurable some day?

orschiro commented 9 years ago

Thanks for your quick response!

I am familiar with Vim keybindings.

Just as an idea:

I noticed that |jk| is used to navigate through months. What do you thin about the idea to have |hjkl| bind as follows:

h: go left horizontally from the currently selected date j: go down vertically from the currently selected date k: go up vertically from the currently selected date l: go left horizontally from the currently selected date

Robert

On 18.11.2014 12:35, Dmitry Medvinsky wrote:

Hey. Actually, if you take a look at the man page https://github.com/dmedvinsky/gsimplecal/blob/e7f44714e8a161f66333ff1dbec2e9503770ba48/doc/gsimplecal.1#L230-L257, you can see that there is a Keyboard Accelerators section which provides ways close the window and navigate through the dates.

The keys are currently hard coded, so you can't reconfigure things, but no one ever complained about those bindings, so I never really bothered to make them customizable. If you're familiar with Vi-style navigation keys, they should work for you very well.

Do they work for you or I should I leave this open to make them configurable some day?

— Reply to this email directly or view it on GitHub https://github.com/dmedvinsky/gsimplecal/issues/23#issuecomment-63457354.

Sharing my passion & inspiration for

Sustasty

SustainableConsumption

SufficiencyLifestyles

ResourceEfficiency

Flying is old-school and the world cannot be saved part-time

Co-Creator of #MindfulMeerkats

www.robert.orzanna.de twitter.com/@orschiro

dmedvinsky commented 9 years ago

I think that is a good idea, because it would be more intuitive to the user. I will ponder that and try to implement some time. Probably after the nasty deadline at work at the end of November, though.

orschiro commented 9 years ago

Excellent, I look very much forward to testing it.

Feel free to share a beta with me. :)

Robert

On 18.11.2014 13:46, Dmitry Medvinsky wrote:

I think that is a good idea, because it would be more intuitive to the user. I will ponder that and try to implement some time. Probably after the nasty deadline at work at the end of November, though.

— Reply to this email directly or view it on GitHub https://github.com/dmedvinsky/gsimplecal/issues/23#issuecomment-63465616.

Sharing my passion & inspiration for

Sustasty

SustainableConsumption

SufficiencyLifestyles

ResourceEfficiency

Flying is old-school and the world cannot be saved part-time

Co-Creator of #MindfulMeerkats

www.robert.orzanna.de twitter.com/@orschiro

dmedvinsky commented 9 years ago

@orschiro Hey Robert, I just pushed the thing to master. It would be cool if you could give it a try and test it a bit. I hope to release a new version (with h/j/k/l to navigate between days, n/p to switch months, N/P to switch years, and also a bug fix) on 12/12 (I like to make releases on cool dates, haha), so would love your feedback before that.

If you have any trouble compiling it from source, feel free to ask here.

WorMzy commented 9 years ago

Works well here, on GTK2 build. :+1:

dmedvinsky commented 9 years ago

@WorMzy Thanks! Good to know, since I was testing GTK3.

orschiro commented 9 years ago

@dmedvinsky

Just tested the gtk3 version. Works great. Thanks for the new keybindings!

dmedvinsky commented 9 years ago

Thanks for testing. I'm releasing a new version.