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-request] Add repeat-command #441

Closed
anjakefala opened this issue Jan 8, 2020 · 1 comment
Closed

[feature-request] Add repeat-command #441

anjakefala opened this issue Jan 8, 2020 · 1 comment

Comments

@anjakefala
Copy link
Collaborator

anjakefala commented Jan 8, 2020

Aim is to have something spiritually similar to vim's . (dot) command.

Design from @ajkerrigan: If there was a repeat command, my intuition would be for it to run the previous cmd longname with any previous input. A z-prefix alternative would run the last command longname with empty, queried input.

Example Workflow

User runs z+ sum on current column Units.
User moves cursor to column Items.
User presses repeat-command. z+ sum is calculated on the current column Items.
User presses z-prefix repeat-command. z+ is exec'd and queries for an aggregator from the user. Once given, it executes on the current column Items.

@anjakefala
Copy link
Collaborator Author

Feature added! ^^
https://www.visidata.org/blog/2020/repeat/

Thank you, @saulpw . 😊

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

No branches or pull requests

2 participants