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

Add methods to track and restore key-table #130

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

ndsizeif
Copy link
Contributor

On teardown, set key-table to the tracked value, or "root" if empty for some reason.

Allows the user to call tmux-fingers from any key-table, perform an action, and revert.

On teardown, set key-table to the tracked value if not empty, instead of "root"
@@ -27,7 +27,8 @@ module Fingers::Commands

class Start < Cling::Command
@original_options : Hash(String, String) = {} of String => String
@last_pane_id : String | Nil
@last_key_table : String | Nil
@last_pane_id : String = "root"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these two signatures are mixed up.

@ndsizeif
Copy link
Contributor Author

That was unfortunate, thank you for catching it.

@Morantron Morantron changed the base branch from master to develop October 30, 2024 09:22
@Morantron Morantron merged commit c257f93 into Morantron:develop Oct 30, 2024
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 this pull request may close these issues.

2 participants