Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-01-12 | Revert "fix(lib): send carriage return after `title` to fix #11314 (#11315)" | Marc Cornellà | |
This reverts commit 3dd83a22a160249a71631a51490fd3b89d1b3975. See https://github.com/ohmyzsh/ohmyzsh/issues/11314#issuecomment-1379492472 | |||
2023-01-11 | fix(lib): send carriage return after `title` to fix #11314 (#11315) | Lawton Nichols | |
Window and tab titles are changed by emitting an unprintable escape sequence to the terminal. These escape sequences do not play nicely with the TAB character on multiple terminal emulators--they create un-deletable characters on the first line after command execution. Sending "\r" after changing the window and tab titles allows all characters on the first line to be deleted. Fixes #11314 | |||
2022-02-25 | feat(lib): support auto title in foot terminal (#10735) | Markus (Vock) Arians | |
Co-authored-by: Markus Arians <markus.arians@andrena.de> | |||
2021-11-25 | fix(lib): don't error if `INSIDE_EMACS` is not defined (#10443) | Paul Scott | |
2021-11-11 | fix(lib): fix potential command injection in `title` and `spectrum` functions | Marc Cornellà | |
The `title` function unsafely prints its input without sanitization, which if used with custom user code that calls it, it could trigger command injection. The `spectrum_ls` and `spectrum_bls` could similarly be exploited if a variable is changed in the user's shell environment with a carefully crafted value. This is highly unlikely to occur (and if possible, other methods would be used instead), but with this change the exploit of these two functions is now impossible. | |||
2021-09-29 | fix(lib): fix automatic title abort inside Emacs (#10124) | Marc Cornellà | |
Closes #10124 Co-authored-by: Paul Schorfheide <pschorf2@gmail.com> Co-authored-by: Alastair Rankine <alastair@girtby.net> | |||
2021-01-07 | fix(lib): update Emacs terminal detection in `title` function (#9577) | Kyle Gerard Felker | |
Environment variable EMACS was replaced by INSIDE_EMACS | |||
2020-10-08 | lib: follow standards in window title (#9320) | Michele Bologna | |
In Ubuntu and Debian, in scp, and in rsync the prompt is by default specified as in user@hostname:/path/to/directory while the previous title in ohmyzsh was user@hostname: /path/to/directory | |||
2020-09-29 | lib: support simple terminal in title function | Marc Cornellà | |
Fixes #9295 | |||
2020-09-28 | lib: support alacritty $TERM in title function | Marc Cornellà | |
2020-09-27 | lib: correct :q syntax in title function for clarity | Marc Cornellà | |
2020-07-23 | lib: support mlterm-256color | Marc Cornellà | |
Co-authored-by: Peter J. Schroeder <peterjschroeder@gmail.com> | |||
2020-06-30 | Handle unset variables in various parts of the codebase (#8944) | Patrick Moore | |
DISABLE_UNTRACKED_FILES_DIRTY, DISABLE_AUTO_TITLE, GIT_STATUS_IGNORE_SUBMODULES are not set Handle these variables not being set with conditional access. If the user has set -u option to report attempts to use undeclared / unassigned variable, accessing the variables needs to be conditional. | |||
2020-06-19 | core: add title support for mlterm (#8303) | joshuashaffer | |
2020-03-05 | lib: support konsole* $TERM in title function (#8035) | Marc Cornellà | |
2020-03-03 | lib: automatic title: replace fg with description from jobs (#7982) | Marc Cornellà | |
* Automatic title: Replace fg with description from jobs * Avoid error messages when there is no job * Use $jobstates and $jobtexts to look for jobs `jobs %string` doesn't work correctly when run inside `$()`. `$jobstates` and `$jobtexts` is available in the current shell process, so even though we need to replicate a bit more logic, every type of `fg` invocation works correctly. * lib: clean up termsupport.zsh Co-authored-by: Marc Cornellà <marc.cornella@live.com> | |||
2020-03-03 | lib: clean up termsupport.zsh | Marc Cornellà | |
2020-03-03 | Use $jobstates and $jobtexts to look for jobs | Marc Cornellà | |
`jobs %string` doesn't work correctly when run inside `$()`. `$jobstates` and `$jobtexts` is available in the current shell process, so even though we need to replicate a bit more logic, every type of `fg` invocation works correctly. | |||
2020-02-28 | lib: urlencode hostname in update_terminalapp_cwd (#6245) | Stephen Heuer | |
Apple's Terminal doesn't open a new tab in your current directory if your hostname has UTF-8 characters in it. Percent encoding the host in addition to the path in update_terminalapp_cwd appears to solve this issue. Co-authored-by: Marc Cornellà <marc.cornella@live.com> | |||
2019-11-19 | Use safer append to hook function arrays (#8406) | Jacob Tomaw | |
Use add-zsh-hook to add functions to hooks. That way they won't be added again when doing `source ~/.zshrc` multiple times. Co-authored-by: Marc Cornellà <marc.cornella@live.com> | |||
2019-07-07 | Avoid error messages when there is no job | Erik Demaine | |
2019-07-06 | Automatic title: Replace fg with description from jobs | Erik Demaine | |
2019-03-21 | termsupport: add support for tmux* $TERM values (#7622) | Jeremy Armstrong | |
2018-08-07 | use https everywhere (#6574) | Janosch Schwalm | |
* use https everywhere * use https links on the files that are left Also, removed some broken links and updated redirections. | |||
2015-12-14 | Fix indentation | moyamo | |
2015-12-14 | Default to using terminfo to set the terminal title | moyamo | |
Currently, the title is only set on supported terminals (i.e. xterm, urxvt, screen etc.). Using terminfo entries to set the terminal title adds support for many more terminals. | |||
2015-12-01 | Cleanup update_terminalapp_cwd function | Marc Cornellà | |
2015-12-01 | Quote all variables in if statements | Marc Cornellà | |
2015-12-01 | Use a case structure to id terminal types | Marc Cornellà | |
2015-12-01 | Added setting of the window title in Cygwin | Dawid Ferenczy | |
2015-12-01 | Support all kinds of putty-like terminal strings. | Ionel Cristian Mărieș | |
2015-11-30 | Add support for "putty" $TERM in termsupport.zsh | Ionel Cristian Mărieș | |
2015-11-27 | termsupport: protect subshell with quotes | Andrew Janke | |
2015-08-17 | Merge branch 'master' into fold-terminalapp-plugin-into-termsupport | Andrew Janke | |
2015-08-17 | Add defensive `emulate -L zsh` to termsupport functions | Andrew Janke | |
2015-08-12 | Merge pull request #4233 from apjanke/apple-term-no-dupe-folder-in-title | Robby Russell | |
termsupport: avoid repeated dir in window title in Terminal.app | |||
2015-08-12 | Merge pull request #4203 from apjanke/title-protect-promptsubst | Robby Russell | |
termsupport: protect title() with `emulate -L zsh` for portability | |||
2015-08-12 | Merge pull request #2106 from adepasquale/master | Robby Russell | |
Added ssh-like mosh window title | |||
2015-08-09 | Move urlencode/urldecode functions to core lib | Andrew Janke | |
2015-08-09 | termsupport: avoid repeated dir in window title in Terminal.app | Andrew Janke | |
2015-07-31 | termsupport: protect title() with `emulate -L zsh` | Andrew Janke | |
This prevents it from malfunctioning when `setopt prompt_subst` is off. | |||
2015-02-21 | Add support for variant "utf8" locale suffix spelling. Fix dumb bug in iconv ↵ | Andrew Janke | |
call that would cause it to hang. | |||
2015-02-21 | Remove unnecessary braces. | Andrew Janke | |
2015-02-17 | For unspecified encodings, assume it's UTF-8 or compatible (e.g. ASCII) and ↵ | Andrew Janke | |
muddle through without character encoding conversion. | |||
2015-02-17 | Add support for non-UTF-8 encodings in caller's locale. | Andrew Janke | |
2015-02-14 | In termsupport, use LC_CTYPE instead of LANG to enable byte-by-byte text ↵ | Andrew Janke | |
processing. LANG doesn't seem to actually work. | |||
2015-02-14 | Remove terminalapp plugin and fold its implementation in to ↵ | Andrew Janke | |
lib/termsupport.zsh. Replaces the redundant Terminal.app support that was recently added to termsupport. | |||
2015-02-13 | Extract CWD notifier back out of auto-title hooks | Marc Cornellà | |
2015-02-10 | Use quoted $TERM value everywhere | Marc Cornellà | |
2015-02-10 | Quick-fix code style | Marc Cornellà | |