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

Support for unicode codes #148

Closed
Pk13055 opened this issue Mar 16, 2018 · 3 comments
Closed

Support for unicode codes #148

Pk13055 opened this issue Mar 16, 2018 · 3 comments

Comments

@Pk13055
Copy link

Pk13055 commented Mar 16, 2018

Currently if you replace a given symbol with its unicode code value (and not the actual symbol itself), it ends up printing the code itself.
screenshot from 2018-03-17 02-59-35

Here is the relevant tmux config part (for reference)

# root indicator
tmux_conf_theme_root='\uf21b'
tmux_conf_theme_root_fg='none'
tmux_conf_theme_root_bg='none'
tmux_conf_theme_root_attr='bold,blink'
@gpakosz
Copy link
Owner

gpakosz commented Mar 19, 2018

The content of the tmux_conf_theme_ variables are given to tmux mostly unchanged which you can see if you do tmux show -gv status-left or tmux show -gv status-right.

tmux doesn't interpret \uf21b, you have to give it UTF-8

@Pk13055
Copy link
Author

Pk13055 commented Mar 26, 2018

How would one work towards interpreting this the right way? Given how useful oh-my-tmux has been for me, I would love to add this. This would serve as a great way for us to add extra symbols (stuff under Nerd Fonts, etc) without having to UTF-8 everything manually. There's a quick fix I can think of. Before passing the config to tmux directly, we could:

echo config > .temp_config
mv .temp_config config
# pass this config (having made the terminal do all the translation for us :D) to tmux

@gpakosz
Copy link
Owner

gpakosz commented Apr 8, 2019

Hey @Pk13055 👋

Do you mind giving the gh-148 branch a try?

@gpakosz gpakosz closed this as completed in 28cbc30 May 7, 2019
@gpakosz gpakosz reopened this May 7, 2019
gpakosz added a commit that referenced this issue Jun 6, 2019
…olves #167

e.g. \u23f0 will print an alarm clock symbol and \U0001f1eb\U0001f1f7 a French flag
gpakosz added a commit that referenced this issue Jun 6, 2019
…olves #167

e.g. \u23f0 will print an alarm clock symbol and \U0001f1eb\U0001f1f7 a French flag
gpakosz added a commit that referenced this issue Jun 8, 2019
…solves #167

some examples:
- \u23f0 will be converted to the alarm clock symbol ⏰
- \U1f47d will be converted to the alien emoji 👽
paddyroddy pushed a commit to paddyroddy/tmux that referenced this issue Nov 21, 2019
…and resolves gpakosz#167

some examples:
- \u23f0 will be converted to the alarm clock symbol ⏰
- \U1f47d will be converted to the alien emoji 👽
alipiry pushed a commit to alipiry/.tmux that referenced this issue Jan 5, 2020
…and resolves gpakosz#167

some examples:
- \u23f0 will be converted to the alarm clock symbol ⏰
- \U1f47d will be converted to the alien emoji 👽
paddyroddy pushed a commit to paddyroddy/tmux that referenced this issue Jan 31, 2020
…and resolves gpakosz#167

some examples:
- \u23f0 will be converted to the alarm clock symbol ⏰
- \U1f47d will be converted to the alien emoji 👽
paddyroddy pushed a commit to paddyroddy/tmux that referenced this issue Jan 31, 2020
…and resolves gpakosz#167

some examples:
- \u23f0 will be converted to the alarm clock symbol ⏰
- \U1f47d will be converted to the alien emoji 👽
paddyroddy pushed a commit to paddyroddy/tmux that referenced this issue Jan 31, 2020
…and resolves gpakosz#167

some examples:
- \u23f0 will be converted to the alarm clock symbol ⏰
- \U1f47d will be converted to the alien emoji 👽
wzdiyb pushed a commit to wzdiyb/.tmux that referenced this issue Feb 16, 2020
…and resolves gpakosz#167

some examples:
- \u23f0 will be converted to the alarm clock symbol ⏰
- \U1f47d will be converted to the alien emoji 👽
psjay pushed a commit to psjay/.tmux that referenced this issue Mar 17, 2020
…and resolves gpakosz#167

some examples:
- \u23f0 will be converted to the alarm clock symbol ⏰
- \U1f47d will be converted to the alien emoji 👽
antoniaelsen added a commit to antoniaelsen/.tmux that referenced this issue Jun 5, 2020
* 'master' of https://github.com/haebou/.tmux: (43 commits)
  improved error bypass logic in _apply_bindings() (2), fixes gpakosz#331
  improved error bypass logic in _apply_bindings(), fixes gpakosz#330
  raised _maximize_pane() retry count and sleep duration, fixes gpakosz#328
  fixed _tty_info() to properly discard daemons and their children, fixes gpakosz#320
  rewrote _apply_bindings() to support new tmux 3.0 bindings (4)
  rewrote _apply_bindings() to support new tmux 3.0 bindings (3)
  made requirements explicit in both README.md and .tmux.conf
  afer the _apply_bindings() rewrite, perl has become mandatory
  warn users about tmux >= 2.4 only when starting tmux
  rewrote _apply_bindings() to support new tmux 3.0 bindings (2)
  fixed broken status line separator default values
  rewrote _apply_bindings() to support new tmux 3.0 bindings, fixes gpakosz#254
  warn users this configuration will soon require tmux >= 2.4
  updated README.md with instructions for Powerline symbols with iTerm2, resolves gpakosz#270
  fixed status line configuration when only using #{uptime_s}
  added support for #{uptime_y} variable
  always use grep -E for regular expression and unset GREP_OPTIONS, fixes gpakosz#252
  implemented Unicode 4-digit and 8-digit parsing, resolves gpakosz#148 and resolves gpakosz#167
  made workaround for implementations of sed that don't understand -E more robust
  fixed ssh reconnection when pane runs a remote command
  ...
yerstd pushed a commit to cgxxv/tmuxc that referenced this issue Dec 9, 2021
…and resolves gpakosz#167

some examples:
- \u23f0 will be converted to the alarm clock symbol ⏰
- \U1f47d will be converted to the alien emoji 👽
antoniaelsen added a commit to antoniaelsen/.tmux that referenced this issue Aug 17, 2022
* master: (45 commits)
  [ENH] Enable powerline characters
  [FIX] Fix split window pane
  improved error bypass logic in _apply_bindings() (2), fixes gpakosz#331
  improved error bypass logic in _apply_bindings(), fixes gpakosz#330
  raised _maximize_pane() retry count and sleep duration, fixes gpakosz#328
  fixed _tty_info() to properly discard daemons and their children, fixes gpakosz#320
  rewrote _apply_bindings() to support new tmux 3.0 bindings (4)
  rewrote _apply_bindings() to support new tmux 3.0 bindings (3)
  made requirements explicit in both README.md and .tmux.conf
  afer the _apply_bindings() rewrite, perl has become mandatory
  warn users about tmux >= 2.4 only when starting tmux
  rewrote _apply_bindings() to support new tmux 3.0 bindings (2)
  fixed broken status line separator default values
  rewrote _apply_bindings() to support new tmux 3.0 bindings, fixes gpakosz#254
  warn users this configuration will soon require tmux >= 2.4
  updated README.md with instructions for Powerline symbols with iTerm2, resolves gpakosz#270
  fixed status line configuration when only using #{uptime_s}
  added support for #{uptime_y} variable
  always use grep -E for regular expression and unset GREP_OPTIONS, fixes gpakosz#252
  implemented Unicode 4-digit and 8-digit parsing, resolves gpakosz#148 and resolves gpakosz#167
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants