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: Truncate Visible Characters? #212

Closed
erwin opened this issue Mar 22, 2022 · 3 comments
Closed

Feature Request: Truncate Visible Characters? #212

erwin opened this issue Mar 22, 2022 · 3 comments

Comments

@erwin
Copy link

erwin commented Mar 22, 2022

I've found myself using vim table mode as a replacement for a spreadsheets. Sometimes you have a data value that you want to capture, say a real URL, or some other sometimes very long value but often shorter value.

It would be very cool if the column "visible width" could be defined, and anything beyond that value would be hidden. When your cursor is over that value, you could show the entire long value in the status bar or use pop up layers (not sure of the proper name - Also may be neovim exclusive)

A bit like the field wrap request

#178

Anyway, it's an awesome and super useful tool you've built. Hope you find it a useful suggestion, but if you don't I completely understand.

@dhruvasagar
Copy link
Owner

@erwin I think a better approach you might try for this would be to use something like markdown or dotoo (https://github.com/dhruvasagar/vim-dotoo) or vimwiki as your base document which has better support for links and can leverage concealing etc to show short text with the actual url hidden.

@dhruvasagar
Copy link
Owner

@erwin it turns out the alignment don't work well with conceal

@dhruvasagar
Copy link
Owner

@erwin I think this is very tricky and hard to do in a text document.

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