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

Pasting Text ist pasted word by word instead of immediately. #3394

Closed
1 task done
Nukiver opened this issue Jan 24, 2023 · 10 comments
Closed
1 task done

Pasting Text ist pasted word by word instead of immediately. #3394

Nukiver opened this issue Jan 24, 2023 · 10 comments
Assignees
Labels
🤩 enhancement Improvement of a feature

Comments

@Nukiver
Copy link

Nukiver commented Jan 24, 2023

Code of Conduct

  • I agree to follow this project's Code of Conduct

What happened?

Problem is in Windows-Terminal version 1.15.3465.0
When pasting Text it loads word by word instead of being pasted at once like it usually does in a powershell window. When disabling oh-my-posh everything works as intended.
I would expect the text to be pastet immediately, and not slowly word by word.
How it looks and works right now:
https://user-images.githubusercontent.com/78356807/214319219-bc9e7dad-77f2-498c-afdb-9f9063b7c9d5.mp4

How I would expect it to work:
https://user-images.githubusercontent.com/78356807/214319337-a59ed046-11a6-463a-8244-a7811b35f91c.mp4

I hope you guys can help me out! :)

Theme

I followed the documentation and did not change the theme yet.
I am running oh-my-posh in the newest version of Windows-Terminal in a powershell.

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

###### I CHANGED THE USERNAME TO HIDE MY IDENTITY #####

Version: 13.6.0  

Segments:

ConsoleTitle(true) -  10 ms - powershell in USERNAME
session(true)      -   0 ms -  USERNAME 
path(true)         -   4 ms -   ~
git(false)         -  12 ms -
root(true)         -   0 ms -  
exit(true)         -   0 ms -   
node(false)        -   0 ms -
go(false)          -   0 ms -
python(false)      -   0 ms -
shell(true)        -   0 ms - in powershell
time(true)         -   0 ms - at 15:22:36

Run duration: 35.9412ms

Cache path: C:\Users\USERNAME\AppData\Local\oh-my-posh

Config path:

Logs:

[DEBUG] 15:22:36.196 shell.go:Getenv:336 → C:\Users\USERNAME\AppData\Local
[TRACE] 15:22:36.196 shell.go:Getenv(LOCALAPPDATA) - 2.9628ms
[TRACE] 15:22:36.197 shell_windows.go:CachePath() - 3.9687ms
[DEBUG] 15:22:36.199 shell.go:Getenv:336 → NO DATA
[TRACE] 15:22:36.199 shell.go:Getenv(POSH_THEME) - 0s
[TRACE] 15:22:36.199 shell.go:resolveConfigPath() - 0s
[TRACE] 15:22:36.199 shell.go:Init() - 5.971ms
[TRACE] 15:22:36.199 shell.go:Flags() - 0s
[TRACE] 15:22:36.201 config.go:loadConfig() - 0s
[TRACE] 15:22:36.201 shell.go:Flags() - 0s
[DEBUG] 15:22:36.201 shell.go:Getenv:336 → NO DATA
[TRACE] 15:22:36.201 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 15:22:36.201 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 15:22:36.201 shell.go:GOOS() - 0s
[TRACE] 15:22:36.201 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[TRACE] 15:22:36.202 shell.go:GOOS() - 0s
[DEBUG] 15:22:36.202 shell_windows.go:WindowsRegistryKeyValue:206 → ColorizationColor(DWORD): 0xC40078D7
[TRACE] 15:22:36.202 shell_windows.go:Root() - 0s
[DEBUG] 15:22:36.210 shell.go:Shell:581 → process name: powershell.exe
[TRACE] 15:22:36.210 shell.go:Shell() - 8.8577ms
[TRACE] 15:22:36.210 shell.go:ErrorCode() - 0s
[TRACE] 15:22:36.210 shell_windows.go:IsWsl() - 0s
[TRACE] 15:22:36.210 shell.go:GOOS() - 0s
[DEBUG] 15:22:36.211 shell.go:Pwd:364 → NO DATA
[TRACE] 15:22:36.211 shell.go:Pwd() - 588.4µs
[DEBUG] 15:22:36.211 shell_windows.go:56 → C:\Users\USERNAME
[TRACE] 15:22:36.211 shell.go:GOOS() - 0s
[TRACE] 15:22:36.211 shell.go:GOOS() - 0s
[TRACE] 15:22:36.211 shell.go:GOOS() - 0s
[TRACE] 15:22:36.211 shell.go:GOOS() - 0s
[TRACE] 15:22:36.211 shell.go:GOOS() - 0s
[TRACE] 15:22:36.211 shell.go:GOOS() - 0s
[TRACE] 15:22:36.211 shell.go:GOOS() - 0s
[TRACE] 15:22:36.211 shell.go:GOOS() - 0s
[TRACE] 15:22:36.211 shell.go:GOOS() - 0s
[TRACE] 15:22:36.211 shell.go:GOOS() - 0s
[DEBUG] 15:22:36.211 shell.go:User:485 → USERNAME
[TRACE] 15:22:36.211 shell.go:User() - 0s
[DEBUG] 15:22:36.212 shell.go:Host:497 → N-11845
[TRACE] 15:22:36.212 shell.go:Host() - 513.7µs
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:TemplateCache() - 9.9598ms
[TRACE] 15:22:36.212 shell.go:Flags() - 0s
[DEBUG] 15:22:36.212 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.212 shell.go:Pwd() - 0s
[DEBUG] 15:22:36.212 shell_windows.go:56 → C:\Users\USERNAME
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[DEBUG] 15:22:36.212 shell.go:Getenv:336 → NO DATA
[TRACE] 15:22:36.212 shell.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 15:22:36.212 shell.go:Getenv:336 → NO DATA
[TRACE] 15:22:36.212 shell.go:Getenv(SSH_CLIENT) - 0s
[TRACE] 15:22:36.212 shell.go:TemplateCache() - 0s
[TRACE] 15:22:36.212 shell.go:TemplateCache() - 0s
[TRACE] 15:22:36.212 shell.go:Shell() - 0s
[DEBUG] 15:22:36.212 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.212 shell.go:Pwd() - 0s
[DEBUG] 15:22:36.212 shell_windows.go:56 → C:\Users\USERNAME
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[DEBUG] 15:22:36.212 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.212 shell.go:Pwd() - 7.3µs
[TRACE] 15:22:36.212 shell.go:Shell() - 0s
[TRACE] 15:22:36.212 shell.go:Shell() - 0s
[TRACE] 15:22:36.212 shell.go:Flags() - 0s
[DEBUG] 15:22:36.212 shell_windows.go:56 → C:\Users\USERNAME
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:PathSeparator() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:PathSeparator() - 0s
[TRACE] 15:22:36.212 shell.go:PathSeparator() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:PathSeparator() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:PathSeparator() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:GOOS() - 0s
[TRACE] 15:22:36.212 shell.go:PathSeparator() - 0s
[DEBUG] 15:22:36.212 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.212 shell.go:Pwd() - 0s
[TRACE] 15:22:36.212 shell_windows.go:IsWsl() - 0s
[TRACE] 15:22:36.212 shell.go:StackCount() - 0s
[DEBUG] 15:22:36.213 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 15:22:36.213 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 15:22:36.213 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 15:22:36.213 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 15:22:36.213 shell_windows.go:DirIsWritable() - 1.1375ms
[TRACE] 15:22:36.213 shell.go:TemplateCache() - 0s
[TRACE] 15:22:36.216 shell.go:TemplateCache() - 0s
[TRACE] 15:22:36.216 shell.go:Shell() - 0s
[DEBUG] 15:22:36.216 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.216 shell.go:Pwd() - 0s
[DEBUG] 15:22:36.216 shell_windows.go:56 → C:\Users\USERNAME
[TRACE] 15:22:36.216 shell.go:GOOS() - 0s
[TRACE] 15:22:36.216 shell.go:GOOS() - 0s
[ERROR] 15:22:36.228 shell.go:CommandPath:539 → exec: "git.exe": executable file not found in %PATH%
[TRACE] 15:22:36.228 shell.go:CommandPath(git.exe) - 12.0517ms
[TRACE] 15:22:36.228 shell.go:HasCommand(git.exe) - 12.0517ms
[DEBUG] 15:22:36.228 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.228 shell.go:Pwd() - 0s
[DEBUG] 15:22:36.228 shell_windows.go:56 → C:\Users\USERNAME
[TRACE] 15:22:36.228 shell.go:GOOS() - 0s
[TRACE] 15:22:36.228 shell_windows.go:Root() - 0s
[TRACE] 15:22:36.228 shell.go:TemplateCache() - 0s
[TRACE] 15:22:36.228 shell.go:Shell() - 0s
[DEBUG] 15:22:36.228 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.228 shell.go:Pwd() - 0s
[DEBUG] 15:22:36.228 shell_windows.go:56 → C:\Users\USERNAME
[TRACE] 15:22:36.228 shell.go:GOOS() - 0s
[TRACE] 15:22:36.228 shell.go:ErrorCode() - 0s
[TRACE] 15:22:36.228 shell.go:TemplateCache() - 0s
[TRACE] 15:22:36.229 shell.go:TemplateCache() - 0s
[TRACE] 15:22:36.229 shell.go:Shell() - 0s
[TRACE] 15:22:36.229 shell.go:TemplateCache() - 0s
[TRACE] 15:22:36.229 shell.go:Flags() - 0s
[DEBUG] 15:22:36.229 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.229 shell.go:Pwd() - 0s
[DEBUG] 15:22:36.229 shell_windows.go:56 → C:\Users\USERNAME
[TRACE] 15:22:36.229 shell.go:GOOS() - 0s
[DEBUG] 15:22:36.229 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.229 shell.go:Pwd() - 0s
[DEBUG] 15:22:36.229 shell_windows.go:56 → C:\Users\USERNAME
[DEBUG] 15:22:36.229 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.229 shell.go:Pwd() - 0s
[DEBUG] 15:22:36.229 shell_windows.go:56 → C:\Users\USERNAME
[TRACE] 15:22:36.229 shell.go:GOOS() - 0s
[DEBUG] 15:22:36.229 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.229 shell.go:Pwd() - 0s
[DEBUG] 15:22:36.229 shell_windows.go:56 → C:\Users\USERNAME
[DEBUG] 15:22:36.229 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.229 shell.go:Pwd() - 0s
[DEBUG] 15:22:36.229 shell_windows.go:56 → C:\Users\USERNAME
[TRACE] 15:22:36.229 shell.go:GOOS() - 0s
[DEBUG] 15:22:36.229 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.229 shell.go:Pwd() - 0s
[DEBUG] 15:22:36.229 shell_windows.go:56 → C:\Users\USERNAME
[DEBUG] 15:22:36.229 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.229 shell.go:Pwd() - 0s
[DEBUG] 15:22:36.229 shell_windows.go:56 → C:\Users\USERNAME
[TRACE] 15:22:36.229 shell.go:GOOS() - 0s
[TRACE] 15:22:36.229 shell.go:Shell() - 0s
[TRACE] 15:22:36.229 shell.go:Flags() - 0s
[TRACE] 15:22:36.229 shell.go:TemplateCache() - 0s
[TRACE] 15:22:36.229 shell.go:TemplateCache() - 0s
[TRACE] 15:22:36.229 shell.go:Shell() - 0s
[DEBUG] 15:22:36.229 shell.go:Pwd:344 → C:\Users\USERNAME
[TRACE] 15:22:36.229 shell.go:Pwd() - 0s
[DEBUG] 15:22:36.229 shell_windows.go:56 → C:\Users\USERNAME
[TRACE] 15:22:36.229 shell.go:GOOS() - 0s
[TRACE] 15:22:36.229 shell.go:TemplateCache() - 0s
[TRACE] 15:22:36.229 shell.go:TemplateCache() - 0s
[TRACE] 15:22:36.229 shell.go:Shell() - 0s
[DEBUG] 15:22:36.230 shell.go:Getenv:336 → C:\Users\USERNAME\AppData\Local
[TRACE] 15:22:36.230 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 15:22:36.231 shell_windows.go:CachePath() - 570.9µs
[TRACE] 15:22:36.231 shell.go:Flags() - 0s
@Nukiver Nukiver added the 🐛 bug Something isn't working label Jan 24, 2023
@JanDeDobbeleer
Copy link
Owner

JanDeDobbeleer commented Jan 24, 2023

@Nukiver this is because the default theme has tooltips which triggers logic on every space. That's why you get that behaviour. Exporting the config to your own and removing the tooltips resolves that, but this is expected and not a bug as such (you can't make that faster). We could argue to remove tooltips from the default config so that behaviour is explicit rather than unexpected.

@JanDeDobbeleer JanDeDobbeleer added 🤩 enhancement Improvement of a feature and removed 🐛 bug Something isn't working labels Jan 24, 2023
@Nukiver
Copy link
Author

Nukiver commented Jan 26, 2023

@JanDeDobbeleer Can you explain how one would "Export the config to your own and remov[e] the tooltips" and what would that change? What are these tooltips you are talking about?

I think that changing this behaviour to explicit is going into the correct direction.

@Nukiver Nukiver closed this as completed Jan 26, 2023
@Nukiver
Copy link
Author

Nukiver commented Jan 26, 2023

Accidental close

@Nukiver Nukiver reopened this Jan 26, 2023
@JanDeDobbeleer
Copy link
Owner

JanDeDobbeleer commented Jan 26, 2023

@Nukiver you can find that information here.

oh-my-posh config export --output ~/.mytheme.omp.json

Then edit ~/.mytheme.omp.json and remove the tooltips section. Don't forget to adjust the init statement to use your new config as indicated here.

oh-my-posh init pwsh --config ~/.mytheme.omp.json | Invoke-Expression

That said, I want to have a look to see if we can validate that we need to run oh-my-posh and maybe limit the impact of enabled tooltips.

@Nukiver
Copy link
Author

Nukiver commented Jan 26, 2023

@JanDeDobbeleer I see you've added a commit. How do I use that, or is that even meant for me to use?

Or should I use your workaround that you've shown me instead?
Sorry for being a github newbie.

@JanDeDobbeleer
Copy link
Owner

@Nukiver I'm going to release that this evening so stay tuned. Tests also indicate a serious improvement.

@Nukiver
Copy link
Author

Nukiver commented Jan 26, 2023

@Nukiver I'm going to release that this evening so stay tuned. Tests also indicate a serious improvement.

Thank you very much. Staying tuned! :)

@Nukiver
Copy link
Author

Nukiver commented Jan 27, 2023

So what does this commit mean now? I am sorry I dont understand github too much. Do I update oh-my-posh now and that is done? Or what should be done now? @JanDeDobbeleer

@JanDeDobbeleer
Copy link
Owner

JanDeDobbeleer commented Jan 27, 2023

@Nukiver yes, updating will have this change in there. You just need to open a new shell as the init script is only sourced once. Every merge produces a release automatically.

Copy link

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues.
If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🤩 enhancement Improvement of a feature
Projects
None yet
Development

No branches or pull requests

2 participants