break undo sequence on first invocation #41

Closed
nichtleiter opened this Issue Aug 5, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@nichtleiter

Hi,

and first of all thanks for this great plugin. It really speeds my work up and makes it more fun...

Nevertheless i have a suggestion to improve supertab further. For justification i describe two common situations that could easily be simplified by someone who see through the source code (i've tried it by myself but failed pitiful)

Once in a while the following situations arises:

  • i had a lot of editing done in insert mode. Still in insert mode i want to complete sth. The result of the completion is not what i want.
  • i had to complete a whole pathname. After some completed paths i decide me for a wrong folder/filename by mistake.

After that an undo would discard all changes since the last undo break sequence. So instead of invoking undo one have to delete the changes by hand (what definitely sucks ;) ).

It would be great if a 'u' (see :help i_CTRL-G_u) could be added before a first invocation of supertab with regard to one completion cycle, so a simple undo discard only the last completion.

Maybe one can add a new global variable, that toggles this behavior (for example 'g:SuperTabBreakUndoSequence').

It would be great if somebody could add this feature or can give me a hint where the appropriate code section for this feature is.

With best regards

PS: i asked a related question on the vim-user mailing-list (see: Here)

@ervandew

This comment has been minimized.

Show comment Hide comment
@ervandew

ervandew Aug 8, 2012

Owner

I just wanted to let you know I'm not ignore this. I just haven't had time to look into it yet.

Owner

ervandew commented Aug 8, 2012

I just wanted to let you know I'm not ignore this. I just haven't had time to look into it yet.

@ervandew

This comment has been minimized.

Show comment Hide comment
@ervandew

ervandew Oct 8, 2012

Owner

I finally got around to playing with this and I committed a change which I think does what you want. Give it a shot and let me know if that's the functionality you were looking for.

Owner

ervandew commented Oct 8, 2012

I finally got around to playing with this and I committed a change which I think does what you want. Give it a shot and let me know if that's the functionality you were looking for.

@nichtleiter

This comment has been minimized.

Show comment Hide comment
@nichtleiter

nichtleiter Oct 24, 2012

This is exactly what i've been looking for! Thank you very much for your effort!!!

This is exactly what i've been looking for! Thank you very much for your effort!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment