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

Rerun should retain arguments for the invoked command #720

Open
lndmrk opened this issue May 23, 2024 · 0 comments
Open

Rerun should retain arguments for the invoked command #720

lndmrk opened this issue May 23, 2024 · 0 comments

Comments

@lndmrk
Copy link

lndmrk commented May 23, 2024

For example, if one collects or exports the result of running consult-grep with a prefix argument, then the search directories are forgotten if the buffer is refreshed:

C-u M-x consult-grep
Directories or files: /tmp/foo/,/tmp/bar/
Grep (2 paths, foo/, …): #baz
[2] M-x embark-export
M-x embark-rerun-collect-or-export

Ideally it should remember the directories (/tmp/foo/,/tmp/bar/) and not that it was originally invoked with a prefix argument. Otherwise you would have to re-select those on every refresh.

However, I'm not sure how easy this would be to implement. I looked around a bit and saw that only the actual command is retained in embark--command today. Is it possible to capture the arguments somewhere and then inject them back in embark--rerun-function?

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

No branches or pull requests

1 participant