-
Notifications
You must be signed in to change notification settings - Fork 462
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
incorrect encoding in command mode #639
Comments
I can run it in nvim, but i can't get the right react and answer of the command |
No idea what your desire result is. please be specific. |
Your command is incorrect. The correct way is |
Oops, that's my fault, i didn't not realize that it is Windows. And the correct command in Windows is |
@SolitaryN so is the problem solved? |
can confirmed. it happens in other places too, for example, plugin installation failed, but i'm not sure how to fix it. it seems like an encoding issue. |
We need some additional information (fill in all queries that are in bold [i.e., replace <your-response> with your answer] and tick all applicable checkboxes): Raw markdown (please copy this)
- **Your $TERM environment variable:** _\<your-response\>_
- **Your operating system & version:** _\<your-response\>_
- [ ] My `nvim` supports multibyte text processing (`:echo has("multi_byte")` returns 1).
- [ ] This issue **can** be reproduced using other terminal emulators.
- [ ] The following command works as expected in PowerShell _(i.e., pwsh renders those texts and icons correctly. When applicable, icons are very close to the crosses but there is no overlap)_:
```pwsh
Write-Host ("E492:不是编辑器的命令", "", "", "", "XXXXXXXXX") -Separator " || "
```
- [ ] The above command works as expected in `nvim` (command mode).
- **The output of the following command in PowerShell is:** _\<your-response\>_
```pwsh
Write-Host ($OutputEncoding, [System.Console]::InputEncoding, [System.Console]::OutputEncoding) -Separator " | "
```
- **The output of the above command in `nvim` command mode is:** _\<your-response\>_
- **The output of the following commands in neovim:**
- `:set encoding?`: _\<your-response\>_
- `:language`: _\<your-response\>_
- `:set fileencodings?`: _\<your-response\>_ Preview:
Write-Host ("E492:不是编辑器的命令", "", "", "", "XXXXXXXXX") -Separator " || "
Write-Host ($OutputEncoding, [System.Console]::InputEncoding, [System.Console]::OutputEncoding) -Separator " | "
|
Write-Host ("E492:不是编辑器的命令", "", "", "", "XXXXXXXXX") -Separator " || "
Write-Host ($OutputEncoding, [System.Console]::InputEncoding, [System.Console]::OutputEncoding) -Separator " | " Result: (same in wezterm's pwsh)
Result: (same in wezterm's pwsh)
Footnotes |
My screenshots with black background are in wezterm, and those with purple background are in windows terminal. |
@SolitaryN can u try this draft? #659 I would like to know if this draft can get the same result on your machine as mine. |
I think u didn't install any nerdfont? |
it seems like u install it via scoop? i found the scoop version somehow looks different then directly downloaded and install the font from the official repo. can u try reinstall the nerdfont with this manner?( i'm using jetbtainsmono, maybe u can try it, i'm not sure if this make any difference. also, did u set the font in windows terminal's shell profile? |
could u try install jetbrainsmono from the official nerdfont repo? tks! |
i think u use the wrong name, check "font settings" to get the correct name. |
this one |
@SolitaryN so does the draft work? |
Actually not, I mean maybe it's not suitable to use it in Windows, I will try it in WSL2. |
thanks for your help and お世話になってすみませんでした、ありがとう |
@SolitaryN I think u will be interested in #659 (comment). |
Co-authored-by: 冷酔閑吟 <[email protected]>
* chore(README): bump supported version * feat(options): support new options shipped with v0.9 * feat(scripts): support v0.9 * feat!: add initial support for lsp semantic tokens (#633) * feat(utils): use neovim builtin to get highlights (#632) * fix: remove deprecated options for nvim-tree. * fix(cmp): support dynamic `kind_text` from cmp source: `treesitter`, fix #624 #634 (#637) * fix&feat: introduce suda.vim to write file with sudo * chore(kind_text): cleanup (#648) * feat(alpha): add custom highlight groups (#650) * fix: install `psutils` by default for Windows users * revert: bind `SudaWrite` to `<A-s>` ref: #641 (comment) * fix(cmp): nil `vim_item` * perf(core-mapping): add some useful mapping * fix(nvim-tree): `hide_root_folder` is deprecated * perf: load fidget.nvim after `LspAttach` * minor fix 1. remove `<nop>` at "n|Q" 2. use visual mode instead of visual-line mode for "n|<C-a>" * perf: align style * perf(0.9): `stabilize.nvim` had been upstream to `0.9` * chore(project.nvim): update legacy code * chore(README): update branch info * chore(mapping): cleanup (#657) * fix(icon): update invalid cmp icon (#665) * chore/lspsaga_move (#667) * fix: paint word boundary in python (#669) * fix(bufferline): `show_buffer_default_icon` is now deprecate * feat(formatting): notify users for files under disabled dirs * chore(formatting): rephrase messages * fix(font-encoding): fix invalid characters on windows, fix #639 (#659) Co-authored-by: 冷酔閑吟 <[email protected]> * pref: unify code style for PowerShell commands * perf: better guidance to `Discussions` and `Wiki` (#680) * pref(ISSUE_TEMPLATE): fix typos and format with prettier * fixup! pref(ISSUE_TEMPLATE): fix typos and format with prettier * feat(scripts): abort for nvim v0.7 and its antecedent * feat(settings): allow customization of `transparent_background` (#687) * fix(bufferline): use defaults for `get_element_icon` (#685) * feat(auto-session): remember opened buffers (#688) * revert(keymap): remove redundant mappings. * fix(catppuccin): properly detect `g:colors_name` (#695) Ref: upstream breaking change [catppuccin/nvim@7a7a664] --------- Co-authored-by: ayamir <[email protected]> Co-authored-by: Charles Chiu <[email protected]> Co-authored-by: CharlesChiuGit <[email protected]> Co-authored-by: Xie Zejian <[email protected]> Co-authored-by: AngelontheRoad <[email protected]> Co-authored-by: Saafo <[email protected]>
* chore(README): bump supported version * feat(options): support new options shipped with v0.9 * feat(scripts): support v0.9 * feat!: add initial support for lsp semantic tokens (ayamir#633) * feat(utils): use neovim builtin to get highlights (ayamir#632) * fix: remove deprecated options for nvim-tree. * fix(cmp): support dynamic `kind_text` from cmp source: `treesitter`, fix ayamir#624 ayamir#634 (ayamir#637) * fix&feat: introduce suda.vim to write file with sudo * chore(kind_text): cleanup (ayamir#648) * feat(alpha): add custom highlight groups (ayamir#650) * fix: install `psutils` by default for Windows users * revert: bind `SudaWrite` to `<A-s>` ref: ayamir#641 (comment) * fix(cmp): nil `vim_item` * perf(core-mapping): add some useful mapping * fix(nvim-tree): `hide_root_folder` is deprecated * perf: load fidget.nvim after `LspAttach` * minor fix 1. remove `<nop>` at "n|Q" 2. use visual mode instead of visual-line mode for "n|<C-a>" * perf: align style * perf(0.9): `stabilize.nvim` had been upstream to `0.9` * chore(project.nvim): update legacy code * chore(README): update branch info * chore(mapping): cleanup (ayamir#657) * fix(icon): update invalid cmp icon (ayamir#665) * chore/lspsaga_move (ayamir#667) * fix: paint word boundary in python (ayamir#669) * fix(bufferline): `show_buffer_default_icon` is now deprecate * feat(formatting): notify users for files under disabled dirs * chore(formatting): rephrase messages * fix(font-encoding): fix invalid characters on windows, fix ayamir#639 (ayamir#659) Co-authored-by: 冷酔閑吟 <[email protected]> * pref: unify code style for PowerShell commands * perf: better guidance to `Discussions` and `Wiki` (ayamir#680) * pref(ISSUE_TEMPLATE): fix typos and format with prettier * fixup! pref(ISSUE_TEMPLATE): fix typos and format with prettier * feat(scripts): abort for nvim v0.7 and its antecedent * feat(settings): allow customization of `transparent_background` (ayamir#687) * fix(bufferline): use defaults for `get_element_icon` (ayamir#685) * feat(auto-session): remember opened buffers (ayamir#688) * revert(keymap): remove redundant mappings. * fix(catppuccin): properly detect `g:colors_name` (ayamir#695) Ref: upstream breaking change [catppuccin/nvim@7a7a664] --------- Co-authored-by: ayamir <[email protected]> Co-authored-by: Charles Chiu <[email protected]> Co-authored-by: CharlesChiuGit <[email protected]> Co-authored-by: Xie Zejian <[email protected]> Co-authored-by: AngelontheRoad <[email protected]> Co-authored-by: Saafo <[email protected]>
* chore(README): bump supported version * feat(options): support new options shipped with v0.9 * feat(scripts): support v0.9 * feat!: add initial support for lsp semantic tokens (ayamir#633) * feat(utils): use neovim builtin to get highlights (ayamir#632) * fix: remove deprecated options for nvim-tree. * fix(cmp): support dynamic `kind_text` from cmp source: `treesitter`, fix ayamir#624 ayamir#634 (ayamir#637) * fix&feat: introduce suda.vim to write file with sudo * chore(kind_text): cleanup (ayamir#648) * feat(alpha): add custom highlight groups (ayamir#650) * fix: install `psutils` by default for Windows users * revert: bind `SudaWrite` to `<A-s>` ref: ayamir#641 (comment) * fix(cmp): nil `vim_item` * perf(core-mapping): add some useful mapping * fix(nvim-tree): `hide_root_folder` is deprecated * perf: load fidget.nvim after `LspAttach` * minor fix 1. remove `<nop>` at "n|Q" 2. use visual mode instead of visual-line mode for "n|<C-a>" * perf: align style * perf(0.9): `stabilize.nvim` had been upstream to `0.9` * chore(project.nvim): update legacy code * chore(README): update branch info * chore(mapping): cleanup (ayamir#657) * fix(icon): update invalid cmp icon (ayamir#665) * chore/lspsaga_move (ayamir#667) * fix: paint word boundary in python (ayamir#669) * fix(bufferline): `show_buffer_default_icon` is now deprecate * feat(formatting): notify users for files under disabled dirs * chore(formatting): rephrase messages * fix(font-encoding): fix invalid characters on windows, fix ayamir#639 (ayamir#659) Co-authored-by: 冷酔閑吟 <[email protected]> * pref: unify code style for PowerShell commands * perf: better guidance to `Discussions` and `Wiki` (ayamir#680) * pref(ISSUE_TEMPLATE): fix typos and format with prettier * fixup! pref(ISSUE_TEMPLATE): fix typos and format with prettier * feat(scripts): abort for nvim v0.7 and its antecedent * feat(settings): allow customization of `transparent_background` (ayamir#687) * fix(bufferline): use defaults for `get_element_icon` (ayamir#685) * feat(auto-session): remember opened buffers (ayamir#688) * revert(keymap): remove redundant mappings. * fix(catppuccin): properly detect `g:colors_name` (ayamir#695) Ref: upstream breaking change [catppuccin/nvim@7a7a664] --------- Co-authored-by: ayamir <[email protected]> Co-authored-by: Charles Chiu <[email protected]> Co-authored-by: CharlesChiuGit <[email protected]> Co-authored-by: Xie Zejian <[email protected]> Co-authored-by: AngelontheRoad <[email protected]> Co-authored-by: Saafo <[email protected]> (cherry picked from commit 08c4561)
Feature description
like in normal mode to type:
:!gcc % && a.out
Additional information
No response
The text was updated successfully, but these errors were encountered: