Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vim-like navigation #96

Closed
maaslalani opened this issue Aug 15, 2021 · 3 comments · Fixed by #108
Closed

Vim-like navigation #96

maaslalani opened this issue Aug 15, 2021 · 3 comments · Fixed by #108

Comments

@maaslalani
Copy link
Owner

maaslalani commented Aug 15, 2021

Add key bindings to navigate around the presentation with additonal vim bindings:

  • G go to last slide
  • gg go to first slide
@marcotrosi
Copy link

marcotrosi commented Aug 15, 2021

or one step further and having a config file in home dir (~/.slides) where you can configure whatever you want. keybindings, default color themes that can be overwritten per presentation, ...
Not sure if I like the idea myself, maybe it bloats slides unnecessary too much

@marcotrosi
Copy link

marcotrosi commented Aug 15, 2021

and 13G to go to slide 13, like in Vim to put the cursor on line 13 with 13G.

@maaslalani
Copy link
Owner Author

maaslalani commented Aug 15, 2021

or one step further and having a config file in home dir (~/.slides) where you can configure whatever you want. keybindings, default color themes that can be overwritten per presentation, ...

Not sure if I like the idea myself, maybe it bloats slides unnecessary too much

Yea I would avoid this, I don't want slides to have any persistent configuration on the user's machine (unless theres a really good reason to). Right now all the config lives inside each presentation markdown file, which I think is really nice.

and 13G to go to slide 13, like in Vim to put the cursor on line 13 with 13G.

Ahhh this is a really great idea, and 4j goes 4 slides ahead, etc...

stoovon added a commit to stoovon/slides that referenced this issue Oct 6, 2021
Supported sequence examples:

* G = go to last slide
* gg = go to first slide
* 4j = go forward 4 slides
* 13G = go to slide 13

Extracted navigateX methods to increase maintainability of
model.Update() given the additional functionality.

Closes maaslalani#96
stoovon added a commit to stoovon/slides that referenced this issue Oct 6, 2021
Supported sequence examples:

* G = go to last slide
* gg = go to first slide
* 4j = go forward 4 slides
* 13G = go to slide 13

Extracted navigateX methods to increase maintainability of
model.Update() given the additional functionality.

Closes maaslalani#96
stoovon added a commit to stoovon/slides that referenced this issue Oct 6, 2021
Supported sequence examples:

* G = go to last slide
* gg = go to first slide
* 4j = go forward 4 slides
* 13G = go to slide 13

Extracted navigateX methods to increase maintainability of
model.Update() given the additional functionality.

Closes maaslalani#96
maaslalani pushed a commit that referenced this issue Oct 10, 2021
Supported sequence examples:

* G = go to last slide
* gg = go to first slide
* 4j = go forward 4 slides
* 13G = go to slide 13

Extracted navigateX methods to increase maintainability of
model.Update() given the additional functionality.

Closes #96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants