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

implement 'hard tab' as a series of hard tab chars that 'count' as spaces #14

Open
bombasticbob opened this issue Jul 19, 2016 · 0 comments

Comments

@bombasticbob
Copy link
Owner

implement 'hard tab' so that a ctrl+i (08H) is used to represent a 'tabbed white space', normalized to the correct column based on tab stops. As an example, if you set tabs at 4, and insert a tab at column 0, then 4 '08H' characters will be inserted, and the column will be set at 4.

to normalize deleting, tabs would have to be deleted "up to the next tab stop" for each delete operation.

Insert and delete operations would count as a single '08H' character for undo/redo. The undo/redo would have to normalize it before executing.

inserting spaces would have to overwrite tab characters up to the tab stop.

Alternate representation of hard tabs as a very thin 'arrow' when displaying.

Using this method would simplify length and column index calculations. The only 'fixes' would be in displaying, deleting, and inserting within a series of tab characters.

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

1 participant