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

feat: add fixed position support for floating windows #5217

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

hexh250786313
Copy link
Contributor

This PR adds a new feature to support fixed positioning for floating windows.

Sometimes while coding, I find the diagnostic floating windows can be distracting as they often overlap with the code I'm trying to read. Many diagnostics are temporary and appear during the coding process, and I don't always need to see these less important diagnostic messages. However, they still pop up large floating windows that disrupt my focus.

I took inspiration from Helix editor's diagnostic design, which displays the current cursor's diagnostic message in a fixed position at the top-right corner of the editor. I find this design very effective as it keeps the main editing area clean and uncluttered.

This implementation allows for a more focused coding experience.

image

Copy link

codecov bot commented Dec 7, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 97.38%. Comparing base (6a338ca) to head (0f32e4d).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/model/floatFactory.ts 0.00% 1 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5217      +/-   ##
==========================================
- Coverage   97.39%   97.38%   -0.02%     
==========================================
  Files         291      291              
  Lines       27021    27026       +5     
  Branches     5600     5605       +5     
==========================================
+ Hits        26317    26319       +2     
- Misses        495      496       +1     
- Partials      209      211       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fannheyward fannheyward mentioned this pull request Dec 7, 2024
@fannheyward fannheyward merged commit 28ad86d into neoclide:master Dec 7, 2024
3 of 4 checks passed
fannheyward added a commit that referenced this pull request Dec 24, 2024
a6e54ae fix(client): `shell=true` on windows (#5225)
dce5ae5 feat(plugin): improve argument typing (#5221)
77094cb docs: correct coc-example-config url (#5220)
1e7abfa feat(scope): ensureDocument can accept bufnr (#5219)
28ad86d feat: add fixed position support for floating windows (#5217)
6a338ca fix(codeLens): Misalign when using tabs as indent (#5214)
306d7b9 fix(plugin): gramma on Action not existing (#5213)
5ca97f5 chore: correct typos (#5212)
2816a11 chore(history.md): mentioned recently improvements (#5211)
d70a46d refactor(highlights): remove checkMarkers (#5210)
829a106 perf(highlight): increase number of highlights (#5208)
2fc3f0d fix(semanticTokens): correct end range (#5206)
00da052 feat(semanticTokens): decrease highlighting range (#5205)
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

Successfully merging this pull request may close these issues.

2 participants