summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2025-01-23fix(cli)!: remove harmful `--unattended` flag for `omz update` (#12935)Marc Cornellà
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2025-01-10fix(cli): ensure `ksharrays` is unsetCarlo Sala
Closes #12900
2024-11-21chore: fix some typos (#12818)Bin Chang
2024-10-08feat(git): add escape hatch to enable async promptCarlo Sala
2024-10-08feat(grep): exclude Python virtualenv from `grep` (#12685)Henrik Holmboe
The convention to use `.venv` or `venv` directories for Python virtualenvs is widespread. This directory is huge and gives very little value when grepping in a source code directory. Co-authored-by: Marc Cornellà <marc@mcornella.com>
2024-10-08fix(cli): add plugins with indentation in `omz plugin enable`Marc Cornellà
2024-10-02refactor(bzr): simplify and improve code (#12716)mnv
2024-10-01feat(cli): style plugin README in `omz plugin info`Marc Cornellà
2024-09-23chore(git): fix typoCarlo Sala
2024-09-18feat(git): add `git_previous_branch` functionCarlo Sala
Closes #12538
2024-09-18feat(functions): add `takezip` (#12670)Erik Teichmann
2024-09-15fix(git): update prefix map for modified files (#12674)Saravana J
2024-08-27fix(grep): remove duplicate options (#12639)robertoaceves
2024-07-27fix(lib): turn off `rematchpcre` option in `omz_urlencode` (#12388)Marc Cornellà
Fixes #12388
2024-07-15feat(conda-env): add plugin for conda prompt display (#10619)Jeonguk Choi
Co-authored-by: Jeonguk Choi <91456421+devj121@users.noreply.github.com>
2024-06-18chore(history): show input in confirmation promptMarc Cornellà
Fixes https://github.com/ohmyzsh/ohmyzsh/issues/12472#issuecomment-2175868971
2024-06-18fix(history): fix confirmation prompt to allow bypassMarc Cornellà
See https://github.com/ohmyzsh/ohmyzsh/issues/12472#issuecomment-2171461005
2024-06-13fix(history): fix logic error in prompt for `history -c` (#12500)Nick Glenn
Logic error in `history -c` when prompting for confirmation caused history to be deleted when typing anything but explicitly `n`, `N`, or sending `\n`. New logic prevents deletion by pressing wrong key and only deletes history when sending `y` or `Y`. Co-authored-by: Sargates <nicholas.g.glenn@gmail.com>
2024-06-12fix(history): add warning before deleting command history in `history -c` ↵Marc Cornellà
(#12472)
2024-06-12fix(lib/git): turn off async prompt for zsh < 5.0.6Marc Cornellà
We removed this mitigation in 0c80a063 because of an assumption that the issue had been fixed, but it looks like zsh < 5.0.6 has other issues (see #12360), so we need to disable it for real. Fixes #12360
2024-05-08fix(cli): fix edge cases in `omz plugin disable` command (#12401)Marc Cornellà
Also introduces tests, which will be refactored into the proper place when a test system is finally designed. Fixes #12400
2024-05-02feat(termsupport): support `alacritty*` TERM (#12392)stefan
Closes #12391
2024-04-22chore(async): reenable async prompt by default on zsh < 5.0.6 (#12358)Marc Cornellà
Fixes #12331
2024-04-22fix(async): fix crash on zsh < 5.0.6 (#12358)Marc Cornellà
2024-04-18fix(history): add `t` option to history wrapper (#12365)Martin Hans
The `t` option takes a strftime format specification as argument. This fixes cases in which $HIST_STAMPS is set to a value other than `mm/dd/yyyy|dd.mm.yyyy|yyyy-mm-dd`.
2024-04-18fix(updater): abort update if `$ZSH` is not a git repositoryMarc Cornellà
Fixes #12298
2024-04-18fix(history): fix `history -c` (#12362)Marc Cornellà
Fixes #12362
2024-04-17fix(git): turn off async prompt by default on zsh < 5.0.6 (#12331)Marc Cornellà
See https://github.com/ohmyzsh/ohmyzsh/issues/12331#issuecomment-2059460268
2024-04-16fix(history): fix edge cases introduced in #12341 (#12357)Martin Hans
2024-04-09fix(history): revert to old behavior when no args passed (#12341)MoAlkhateeb
* Fixed a bug in *omz_history* where it would automatically create a file when run with the -p flag * Reverted old history behaviour while fixing parsing bug
2024-04-09fix(history)!: fix arg passing to `fc` for `history` command (#12338)MoAlkhateeb
BREAKING CHANGE: we have fixed a bug in the `history` wrapper for OMZ which means that running just history will now not show all the history since the 1st command, but only recent ones. To get the previous behavior, you can run `history 1` to get all the command history, or other commands such as `history -30` to get the last 30 commands.
2024-04-05fix(lib/git): fix detection of function use in promptMarc Cornellà
RPS1 and RPROMPT are not equivalent, though they have the same effect. Added both to detect if `git_prompt_*` is used. Fixes #12325
2024-04-04perf(async): avoid executing `true` if not required (#12318)Loïc Yhuel
The issue which required "command true" was fixed in zsh 5.8.
2024-04-04fix(git): disable locally `ksharrays`Carlo Sala
Fixes #12321
2024-04-03feat(git): implement async completion for `git_prompt_status` (#12319)Loïc Yhuel
This is important for themes using it, since it is usually a little slower than git_prompt_info. Also two small fixes : - the handler for git_prompt_info was incorrectly named _omz_git_prompt_status - _defer_async_git_register was kept in precmd, there is no need to call it on each prompt
2024-04-03feat(git)!: enable async git prompt (now for real)Marc Cornellà
BREAKING CHANGE: the new async prompt feature will render prompt information asyncronously and degrade nicely when the calls take too long to finish, as the prompt will already be first drawn and interactive. This is enabled by default for the git prompt and themes that use it (`git_prompt_info`). If you find that it's not working for you, please open an issue if one is not already opened, and see https://github.com/ohmyzsh/ohmyzsh#disable-async-git-prompt for how to turn it off.
2024-04-03fix(async): avoid blocking the shell while waiting (#12304)Loïc Yhuel
Co-authored-by: Marc Cornellà <marc@mcornella.com>
2024-03-26style: remove trailing whitespace (#12303)vladislav doster
2024-03-14docs: fix typos (#12284)shuangcui
2024-03-09fix(async): register the git prompt async handler correctly (#12267)Marc Cornellà
This fix conditionally registers the git prompt async handler only if `git_prompt_info` is used anywhere in the prompt variables. This is done in the proper order, so that the async request is processed once the handler has been registered. This fix also passes the return value of the previous command to each of the async handlers, in case they are needed.
2024-03-07fix(git): disable temporarely async promptCarlo Sala
2024-03-07feat(async)!: implement async prompt API and apply to git prompt (#12257)Marc Cornellà
BREAKING CHANGE: the `git_prompt_info` prompt function has been reworked by default to use the new async prompt feature. If you're experiencing issues see #12257. Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2024-02-12fix(key-bindings): bind default arrow keys to `beginning-search`Carlo Sala
Fixes #12197
2024-02-08style(completion): remove extra space (#12206)vladislav doster
2024-02-03fix(prompt): quote ruby prompt (#12195)Taylor Cochran
2024-01-21feat(spectrum): add `FX[dim]` format (#12172)Michal
2023-12-31fix(clipboard): remove clippaste additional newline on wayland (#12140)Jordan Galby
So clippaste behaves the same as on X11 (xsel, xclip).
2023-12-06fix(lib): patch `omz_urlencode` to not encode UTF-8 chars in Termux (#12076)Marc Cornellà
Fixes #12061
2023-11-27fix(misc): only set PAGER if `less` or `more` are available (#12060)Bernard Grymonpon
2023-10-19fix(termsupport): add workaround for directory tracking issues in KonsoleMarc Cornellà
Fixes #11683 Related: 50c6786