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

latex-table-wizard-delete-row cannot delete rows completely #1

Open
fountainer opened this issue Jun 1, 2023 · 2 comments
Open

latex-table-wizard-delete-row cannot delete rows completely #1

fountainer opened this issue Jun 1, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@fountainer
Copy link

There is one empty line left when deleting a table row using D r command. I think it's better if it can delete the row completely.

@enricoflor enricoflor self-assigned this Jun 1, 2023
@enricoflor enricoflor added the enhancement New feature or request label Jun 1, 2023
@enricoflor
Copy link
Owner

Thanks for this! I think the behaviour you want can be achieved with something like this in your configuration:

(add-hook 'latex-table-wizard-after-table-modified-hook #'delete-blank-lines)

This way, every time the table is modified, all blank lines around point are deleted. It should work because in all cases point will be where the deletion happens.

I will think about whether this fix should be an option that the user can set through a public variable. For now, let me know if this works for you.

@fountainer
Copy link
Author

(add-hook 'latex-table-wizard-after-table-modified-hook #'delete-blank-lines)

It works for me. Thank you for writing this package. It's very useful.

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