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

Feature: using same key to toggle behaviors #8

Closed
fresh2dev opened this issue Jun 26, 2023 · 3 comments
Closed

Feature: using same key to toggle behaviors #8

fresh2dev opened this issue Jun 26, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@fresh2dev
Copy link

The same keybinding should be able to toggle specific behavior.

For example, if m is to mark, I expect m to unmark a file that is already marked.

t should activate -- or deactivate -- the git-diff view.

o should expand all -- or collapse all -- of the directories.

etc.

@dzfrias
Copy link
Owner

dzfrias commented Jun 26, 2023

Great suggestion! I'll look into implementing this for marks. t does this already. On the subject of o, I don't think this is great as a toggle, as you don't need all directories open for it to still do something effective. For example, if you had one directory open and press o, the current behavior is to open all the rest, which I think is best. I can, however, make it so when all the directories are open and o is pressed, it closes everything.

@dzfrias dzfrias added the enhancement New feature or request label Jun 26, 2023
@dzfrias
Copy link
Owner

dzfrias commented Jun 26, 2023

I made it so m toggles marks. It'll be available in v1.1.0!

Thanks again for all your suggestions and feedback - they've already improved projectable a lot!

@fresh2dev
Copy link
Author

Wicked!

I can, however, make it so when all the directories are open and o is pressed, it closes everything.

This is reasonable. Generally speaking, if I press a key to do something, but that something is already done, then do the opposite of that something -- where it makes sense, of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants