-
Notifications
You must be signed in to change notification settings - Fork 131
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
Prevent search results from leaking into the terminal #63
Prevent search results from leaking into the terminal #63
Conversation
Thanks! This seems to work well. Looking at the help for The only bit of review I have for you is that the rest of the local variables are prefixed with |
Hi, thanks for the comment. About
Speaking of |
Yeah, no rush on accepting this. I usually leave my PRs open for a couple As far as the l: prefixes.. They should either be used as much as possible On Wednesday, June 25, 2014, Yosh notifications@github.com wrote:
|
OK, I'll include them then. Thank you :) |
:h xterm-screens is related. But I still can't figure out whether |
+1 on this. I can't help but notice the flashing every time I |
Any reason why this hasn't been merged yet? |
I'm still unsure what |
Alright! I'm also perplexed by it, but I think there might be some info in
|
Any news about this ? |
It looks like those options just set different options in your terminal (and it's a terminfo thing?). I'll read it more closely and try it again and try to get this merged. @lesguillemets did you ever figure out for sure what those options are doing? |
I have been reading the vim manual because the results of ag leaking into my terminal annoys me haha. I believe the variables do this: t_ti and t_te both contain a terminal specific code string which vim uses to signal the underlying terminal to go into and out of termcap mode respectively. Temporarily setting them to null will make vim/terminal to not go into and out of termcap mode, and thus not in a mode where it will print anything on the screen during a cmd. These variables exist only because not every implementation of a termcap able terminal is the same. Please correct me if I am understanding this completely wrong. It seems like a hacky solution but hacky solutions are quite common in vim so I'm not too worried. |
Ok, I still don't fully understand what "termcap mode" means (from the vim docs), but at least this discussion is here as a starting point in case someone finds a bug. I just tested it lightly and it works for me. Thanks for your patience! |
…o_terminal Prevent search results from leaking into the terminal
This works perfectly for me now, great! 👍 |
Fix q mapping for location list commands
Ref. mileszs#18
When vim is running on terminal,
:Ag
command works as expected, but meanwhile, all the search results are printed on the console. This is painful especially when handling large number of hits.Adding 6 lines to
temporally, just before
Ag#ag
, this commit hopefully fixes that by saving the user-set values oft_ti
andt_te
and setting both toag
is called, then restoring those afterwards. It works the same way asAg#ag
handles&grepprg
currently.