Copy/Paste unicode text from Firefox to Kitty terminal not working - firefox

(I'm currently on Arch with i3) When i try to copy some unicode text from Firefox to Kitty terminal for example:
昨日
it paste the text:
\u4f5c\u5bb6 \u6628\u65e5
if instead I select the same text (昨日) from Firefox and drag & drop it on the terminal , it paste it correctly as 昨日
The other way around always works , if i copy some emoji like 😎 from the terminal to Firefox it works

Related

copy text from tmux inside VSCode

I use VSCode on macOS, I ssh into Linux remote station and here I run tmux (inside VSCode integrated terminal). However, I am not able to copy any text from tmux into system clipboard when used like this. I am not even able to select the text using mouse - when I select any the selection highlight disappears immediately.
The copying to system clipboard works if:
I run tmux inside separate window of iTerm2
I run normal zshell inside VSC integrated terminal
How to copy text from tmux inside VSC integrated terminal?
That is because vscode terminal does not support osc52. We gotta wait for this issue to be resolved https://github.com/xtermjs/xterm.js/issues/3260
OSC 52 (OSC stands for Operating System Command, a category of ANSI escape sequences which instruct the terminal emulator to perform certain actions) is a terminal sequence used to copy printed text into clipboard, without which copying from remote machine will not send the result to your local clipboard. Applications like tmux support it (actually, tmux is kinda forwarding it), iterm2 support it but not vscode
Solved using the mouse while holding Alt (Option) key. This way I can copy text from Tmux inside VSCode.

How to set terminal tabs titles in zsh, to vim filenames

I am using a oh-my-zsh shell in an Apple terminal (2.11) in full screen, and by default the name of the tabs is the name of the program being run (eg. vim).
Is there an easy way to set the title of the individual terminal tabs to the filename currently opened with vim?
The terminal window title is already set, but not visible in full screen mode. What I'm looking for is to get at a glance the title of all terminal tabs where vim is opened.
Screenshot below:
The solution seems to use vim script shared in https://stackoverflow.com/a/48975505/4756084. It sets the title dynamically based on what file is currently being viewed — which you cannot obtain by going into Terminal Preferences > Tab, and checking "Active process name" and "Arguments" (that would only display the name of the file opened when typing vim file.ext, ignoring any file opened with :e file2.txt, switches between vim panes, etc.)
(With oh-my-zsh, uncommenting DISABLE_AUTO_TITLE="true" in ~/.zshrc might help, as suggested in https://superuser.com/questions/292652/change-iterm2-window-and-tab-titles-in-zsh, although it seems optional after the step above.)

Mac Pro copy paste scrambles what was copied when it is posted a terminal window

When I copy some text like require 'active_record' from some other window and pasted it into the Mac terminal, it gets re-arranged like active_supportrequire. I would like to know how to fix this so that it will paste properly.

How to close the escape of the terminal in MacOS?

when I paste the website address to the terminal, the terminal will escape the character.
eg:
I paste the http://stackoverflow.com/questions/ask?title=xxx ,
in the terminal, it will convert into http://stackoverflow.com/questions/ask\?title\=xxx
How to close the escape in MacOS terminal?
Thanks!
If you are asking how to paste into Terminal without escapes: from the menu bar, choose Edit > Paste (default shortcut: ⌘V).
You only get escaping if you use Edit > Paste Escaped Text (default shortcut: ⌃⌘V).
If your menu items have different keyboard shortcuts, you (or someone) has probably customized them using the Keyboard pane in System Preferences. It looks like this (although I haven't customized the Paste shortcuts):

Vim: need to press Enter after opening a file before it will actually open

Recently, Vim started behaving strangely.
Whenever I open a file with Vim in the terminal, I see the line that is normally at the bottom of vim:
"<filename>" [dos] ###L, ###C
But instead of the buffer being displayed above, the screen is blank.
When I press Enter, however, the buffer displays normally.
What did I change to make Vim behave this way when I open files, and how can I change it back?
Here's my .vimrc.
I'm on a Mac, running OS X 10.8, using Vim 7.3.

Resources