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: Format only modified part #86

Closed
wuliuqii opened this issue Aug 29, 2023 · 2 comments
Closed

Feature request: Format only modified part #86

wuliuqii opened this issue Aug 29, 2023 · 2 comments

Comments

@wuliuqii
Copy link

It would be helpful if there ware a way to format over the changed lines as defined by the revison control system. Like VSCode.

@glepnir
Copy link
Member

glepnir commented Aug 29, 2023

you can bind on visuale mode then only format select section .

@wuliuqii
Copy link
Author

If the modifications are spread out, it feels like a bit too much of a hassle to manually select the modified parts, I'd like to just save in normal mode and then be able to auto-format the modifications.

@xiaoshihou514 xiaoshihou514 mentioned this issue Jun 6, 2024
9 tasks
xiaoshihou514 added a commit that referenced this issue Jul 21, 2024
closes #68 #86 #123 #109 #76 #141 #111
## changes
- [x] remove uv.spawn wrapper in favour of vim.system
- [x] `do_lint` now respects *all* config fields
- [x] linter can now use lnum_end and col_end
- [x] added step by step tutorial for advanced usage
- [x] remove all version checking code, only supports 0.10+ from now on
- [x] apply exepath fix for windows

## internal changes
- [x] events now contains truly all autocmd related functions
- [x] utils now contains execution checking functions
- [x] use custom simpler table copy
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

3 participants