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

[Enhancement] Add row- and column-wise editing #153

Open
sbliven opened this issue Aug 30, 2019 · 2 comments
Open

[Enhancement] Add row- and column-wise editing #153

sbliven opened this issue Aug 30, 2019 · 2 comments

Comments

@sbliven
Copy link

sbliven commented Aug 30, 2019

I would love to see some commands in table mode to rearrange rows/columns.

@dhruvasagar
Copy link
Owner

@sbliven At the time of this writing we already have the ability to delete rows / columns and insert columns. I think it should be valuable to introduce text objects that represent a row / column and that should enable us to build extensions for the requested features.

@sbliven
Copy link
Author

sbliven commented Jun 29, 2020

Nice! This makes column manipulation possible. It might still be nice to have single commands for some of these to speed up the workflow.

Some sequences:

  • Move row: delete line dd or\tdd; move to new location; yank yy
  • Move column: insert a new column \tic; select old column in block visual mode C-V and yank y; paste in empty column p; delete old column \tdc

As an aside, I prefer \tac and \tic for inserting columns after and before the current cursor, for consistency with a and i.

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

2 participants