-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add preview window support #21
base: master
Are you sure you want to change the base?
Conversation
Just realized the problem fixed in the second commit here. I can squash that following review. |
Thanks!
I can think of only one example: when hitting Otherwise the commits look good, so I have started to use the head of #22 in my daily work – we will see if any other edge case comes up. |
Awesome, thanks for the feedback! Sounds perfectly reasonable to me to give it a trial run for awhile and see if any gotchas surface, and from there determine if working around them isn't a nasty kludge. Good point on the macro argument edge case. Let me know here how it goes and I can try to address issues. Thanks for giving it a try 😄 |
I have been using the head of #22, it have been working well, except for the issue that I mentioned:
Also, the outstanding part of issue #19 (see this comment) is very much related to this problem. The solution I described there have been made obsolete by this PR modifying the code to use My proposal to solve both problems is to write our own function instead of
This solution would have the following benefits:
Note: We would still need to modify vim-erlang-tags.erl to generate @ches If you agree with this, do you feel like implementing it, or shall I? |
Generalizes the approach so that the function doesn't need logic to handle split, preview, etc. Also no longer results in the cursor being moved to beginning of the function call (or record/macro after vim-erlang#15) in the original buffer.
This sounds reasonable to me, I'll try giving it a shot when I have a few spare minutes. |
Really good solution. |
This might even work in quoted atoms with spaces inside them. CTAGS seems to use a TAB as a seperator. |
This covers
CTRL-W_}
andCTRL-W_g}
, which I believe takes care of all standard tag window mappings now (minus some details like handling counts the way some originals do).Generalizes the approach so that the wrapper function doesn't need logic to handle split, preview, etc. Also no longer results in the cursor being moved to beginning of the function call (or record/macro after #15) in the original buffer.
I'm not certain that the change to adding
#
and?
toiskeyword
doesn't have any repercussions that I haven't foreseen, but I've tested the mappings with records and macros and everything looks solid to me.