-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
redrawhook issues #245
Comments
The zsh redrawhook branch was merged upstream in zsh-users/zsh@c3ea3ff, to appear in |
Note potential issue with |
Upstream is considering introducing an |
Done: workers/38670 |
I have drafted a patch that uses workers/38670 here: master...danielshahaf:mikachu-redrawhook/v3 At the moment it requires zsh master + two patches from workers@, but I expect both of these patches will be applied to zsh master soon enough. See also #261 and #261 (comment) for two implementations that precede add-zle-hook-widget. edit: see users/21671 and its thread for context. edit: This branch is now #356. |
Status update: There are two candidate implementations:
So: need to merge one or the other. (#288 needs to be merged in either case.) Acceptance criteria [compare https://github.com//pull/288#issuecomment-223329830]: Checklist last updated for da60234 (master) + eb506b5 (#356) using zsh zsh-users/zsh@5b4cbcc
|
zsh version 5.2 and lower don't support ISEARCHMATCH_ACTIVE and we are unable to re-apply zle_highlight on top. Therefore it is impossible to see the underlined matched area. Since that information is more important, completely disable highlighting in isearch in that case. To do that, we need to make sure we are actually called when something changes in isearch. Trumps zsh-users#257. The FAQ entry presupposes zsh-users#245 will be fixed (in time for the release) too.
Note #261 was just updated: #261 (comment) |
Subtotal: 89bf578 addresses all known issues. Review the history, squash if necessary, merge to master, solicit testing on zsh-workers@ (since zsh features from master are used). |
Fixes #356 (the pull request being merged). Fixes #245 (the meta-issue for the following redrawhook issues). Fixes #40. Fixes #90. Fixes #150. Fixes #154. Fixes #183. Fixes #377. * upstream/pr/356: test harness: Actually test the new code. driver: Rewrite without a state variable noop: Make a whitespace-only change to reduce noise in the next commit. docs: Rewrap. docs: Update FAQ answer per changes on this branch. redo _zsh_highlight__function_callable_p driver: Use a different way of checking whether add-zle-hook-widget is present. changelog: Use a more specific link. changelog: Note the effect of fixing #245/#90 and an alternative. driver: Pass zle-line-finish arguments on to _zsh_highlight. driver: Hook zle-line-finish. driver: Reimplement using 'add-zle-hook-widget zle-line-pre-redraw' wrappers: Reimplement using Mikachu's zle-line-pre-redraw hook (workers/36650).
Re-milestoned: 0.5.0 will be released as master minus zsh-5.3 features. |
Re-milestoned: We're going to release a quick 0.6.0 so this will be deferred to 0.7.0. |
…n alternative.
…n alternative.
(As this is the umbrella redrawhook issue:) I just pushed the following: To github.com:zsh-users/zsh-syntax-highlighting Some stats about the first of these:
In other words, this merged to the feature/redrawhook branch some 21 months' worth of changes to Therefore:
|
* feature/redrawhook: docs: Track making the new codepath conditional upon the 'memo=' feature. On the feature/redrawhook branch, changelog: Add entries for issues fixed by this branch. On the feature/redrawhook branch, change the detection of the 'memo=' feature to avoid a catch-22. driver: Make the redrawhook codepath conditional upon the memo= feature. On the feature/redrawhook branch, move the changelog entry to the current release's section. driver: Fix a bug that prevented subsequent, third-party zle-line-pre-redraw hooks from running. driver: Do not pass widget arguments to _zsh_highlight driver: Clarify comment. No functional change. driver: Allow for -U in autoloaded function definition driver: Use idiomatic module check driver: Make the shadowing $WIDGET read only. driver: Avoid a fork in the common case. test harness: Actually test the new code. driver: Rewrite without a state variable noop: Make a whitespace-only change to reduce noise in the next commit. docs: Rewrap. docs: Update FAQ answer per changes on this branch. redo _zsh_highlight__function_callable_p driver: Use a different way of checking whether add-zle-hook-widget is present. changelog: Use a more specific link. changelog: Note the effect of fixing #245/#90 and an alternative. driver: Pass zle-line-finish arguments on to _zsh_highlight. driver: Hook zle-line-finish. driver: Reimplement using 'add-zle-hook-widget zle-line-pre-redraw' wrappers: Reimplement using Mikachu's zle-line-pre-redraw hook (workers/36650).
The following issues should be fixed by the zsh redrawhook branch (#154 (comment)):
#90 #150 #154 #183 #203 #377
(confirmed for #90 and #150; the rest are known to be widget-wrapping-related issues, and the branch does away with widget wrapping)
The following issue probably won't be:#40
edit: Upstream committed a patch that, in in conjunction with this issue, fixes #40, q.v.
The following issues might be fixed by using the
zle -f yank
/zle -f kill
feature already in upstream zsh:#150 #183
edit: #375 is also reported to be fixed by redrawhook branch, and #500 is suspected to be (not tested).
The text was updated successfully, but these errors were encountered: