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

FR: Add short flag for --no-edit in relevant commands (new notably) #4905

Open
YPares opened this issue Nov 18, 2024 · 3 comments
Open

FR: Add short flag for --no-edit in relevant commands (new notably) #4905

YPares opened this issue Nov 18, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@YPares
Copy link

YPares commented Nov 18, 2024

Is your feature request related to a problem? Please describe.

With the mega-merge workflow, most of the time when I create new commits I don't want to edit them straightaway, so I end up using --no-edit a lot

Describe the solution you'd like

--no-edit should have a short flag equivalent, for instance -n

@martinvonz
Copy link
Owner

Sounds reasonable. Feel free to send a PR (should be easy to figure out even if you don't know Rust). I can't promise it will be merged, but at least it will force a discussion and decision.

@YPares
Copy link
Author

YPares commented Nov 18, 2024

Ok! I even thought about going further with this idea. Could there be an option in the .config/jj/config.toml that would make --no-edit the default? I don't think there's already something like that.

@PhilipMetzger PhilipMetzger added the enhancement New feature or request label Nov 18, 2024
@martinvonz
Copy link
Owner

I think we should wait to hear from a few more users before we add a config. So far it seems like an unusual use case.

By the way, have you considered creating an alias like aliases.n = ["new", "--no-edit"]?

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

3 participants