Commit graph

10441 commits

Author SHA1 Message Date
Gil Forsyth
84405423df Updated CHANGELOG for 0.13.2 2022-09-15 08:47:38 -04:00
Gil Forsyth
5fb7bfa2da bumped version to 0.13.2 2022-09-15 08:47:38 -04:00
Gil Forsyth
1e9be618bc Updated authorship for 0.13.2 2022-09-15 08:47:24 -04:00
Andy Kipp
45b1244932
Merge pull request #4937 from lieryan/lieryan-fix-typo
Fix typo/grammar errors
2022-09-13 17:12:24 +06:00
Lie Ryan
f9756ba686
Fix missing newline 2022-09-13 11:19:51 +10:00
Lie Ryan
e633f48f4b
Fix grammar 2022-09-13 11:17:42 +10:00
Lie Ryan
3b37c78150 Fix typo ASYC_PROPMT->ASYNC_PROMPT 2022-09-13 11:12:54 +10:00
Ashish Kurmi
23a7507dcc
ci: add minimum GitHub token permissions for workflow (#4936)
Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io>

Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io>
2022-09-12 10:56:08 -04:00
pre-commit-ci[bot]
c0072d9c4f
[pre-commit.ci] pre-commit autoupdate (#4933)
updates:
- [github.com/psf/black: 22.6.0 → 22.8.0](https://github.com/psf/black/compare/22.6.0...22.8.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-09-05 18:40:16 -04:00
Andy Kipp
b836134f0c
Update tutorial_hist.rst: remove description of not implemented logic (#4930)
Update tutorial_hist.rst
2022-09-03 10:02:22 -04:00
Andy Kipp
be69ff3ad0
Merge pull request #4836 from amukher3/main
Fix: timeit without arguments produces syntax error
2022-08-31 18:57:28 +06:00
Andy Kipp
3c997a004b
Update branch.rst 2022-08-31 18:43:09 +06:00
Andy Kipp
f345df90aa
Update timings.py 2022-08-31 18:41:05 +06:00
Andy Kipp
57a2dd185b
Update branch.rst 2022-08-31 18:31:02 +06:00
Andy Kipp
25cfcf16e6
Fix: xpip return None instead of command (#4922)
* Update aliases.py

* Create xpip.rst

* Update aliases.py

* Update aliases.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-18 20:19:43 +05:30
Peter Ye
588881803c
Make gitstatus prompt field values None when there is no git repo (#4920)
Make gitstatus prompt fields None when there is no git repo
2022-08-17 10:08:02 +05:30
Peter Ye
6fa83f8305
Do not capture unthreaded callable aliases run with ![] (#4919)
* Fix `cd` command error message when `$THREAD_SUBPROCS=False`

* also test $[]
2022-08-11 22:50:21 +05:30
Gil Forsyth
ffe7b3445c Updated CHANGELOG for 0.13.1 2022-08-10 09:46:22 -04:00
Gil Forsyth
0bf2f72c06 bumped version to 0.13.1 2022-08-10 09:46:22 -04:00
Gil Forsyth
67dce72c7b Updated authorship for 0.13.1 2022-08-10 09:46:22 -04:00
Peter Ye
08b302364a
Update terminal title before executing subprocess (#4916)
* Update terminal title before executing subprocess

This eliminates the need to use `pause_call_resume()`, which causes issues
when it sends SIGSTOP to a process that is in the middle of a syscall
(for example, the `swaymsg` command fails when it gets stopped during
a `recv` syscall).

Additionally, this approach is more flexible, as it allows captured
commands and callable aliases to also be updated as expected in the
terminal's title.

* Clear prompt cache in readline shell

* Add type annotation

* Use reset_key() to only reset current_job

* Convert into PromptField class

* Support PromptField with value of None

Allows {current_job:{} | } to work as expected when current_job is a
PromptField.

* Add tests
2022-08-10 09:50:09 +05:30
Stefano Rivera
9e5af81b89
We can't be sure there's a python binary (#4917)
Debian doesn't currently ship a /usr/bin/python binary, unless a user
specifically installs python-is-python3.

See also: #4802
2022-08-09 21:12:40 +05:30
pre-commit-ci[bot]
cb75d27300 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pycqa/flake8: 5.0.2 → 5.0.4](https://github.com/pycqa/flake8/compare/5.0.2...5.0.4)
2022-08-08 15:03:20 -04:00
jbw3
f2ca59a291
Fixing bash completion bug when prefix started with '>', '<', or ':' (#4826)
* Fixing bash completion bug when prefix started with '>', '<', or ':'

* Fixing code formatting

* More code formatting fixes

* Fixing test

* Refactor to fix bug by improving completion parser

* Supporting '<' and '>>' in completion parser

* Support for all IO redirect tokens
2022-08-06 14:37:09 +05:30
Andy Kipp
aa03bc9013
Merge pull request #4909 from xonsh/anki-code-patch-3
Added ujson to xonsh[full] package
2022-08-04 21:35:48 +06:00
Andy Kipp
7216dc1f8b
Merge pull request #4910 from xonsh/anki-code-patch-2
Update dummy.py: simple comment
2022-08-04 19:53:07 +06:00
Andy Kipp
741626b12d
Update dummy.py 2022-08-04 19:39:03 +06:00
Michael Panitz (at Cascadia College)
1dc091fc01
Link to xonsh-specific Windows Terminal info (#4883)
It's weirdly hard to find anything about installing xonsh into Windows Terminal (even though that info's right here on the website).  So link to that hard-to-find info directly; if someone wants to find out what Windows Terminal is they can Google it on their own :)
2022-08-04 07:21:43 -04:00
Andy Kipp
f798eeff93
Merge pull request #4908 from xonsh/anki-code-patch-2
Bump APPIMAGE_PYTHON_VERSION to 3.10
2022-08-03 19:42:42 +06:00
Noorhteen Raja NJ
dd6c873f3c
fix: empty gitstatus on paths without repo (#4907)
* fix: empty gitstatus on paths without repo

fixes #4900

* docs: add news item

* fix: failing test because of cache in git-dir per cwd
2022-08-03 19:09:43 +05:30
Andy Kipp
309188e9fc
Create ujson.rst 2022-08-03 19:29:28 +06:00
Andy Kipp
c14455c828
Added "ujson" to xonsh[full] 2022-08-03 19:24:19 +06:00
Andy Kipp
44a894686e
Create appimage.rst 2022-08-03 19:18:38 +06:00
Andy Kipp
e994cc875d
Bump APPIMAGE_PYTHON_VERSION to 3.10 2022-08-03 19:16:50 +06:00
Peter Ye
86e4f004e3
Fix job control for callable aliases (#4901)
* Make job control task queue thread-local

This allows callable aliases to maintain a separate task queue from the
main thread.

* Make job control dictionary thread-local

Use XSH.all_jobs for the main thread and a separate dictionary for other
threads. This allows callable aliases to keep track of their jobs
separate from the main thread.

* Implement use_main_jobs() context manager

This allows threaded commands like jobs, disown, and bg to handle the
main thread's job control

* Run commands in the same process group if in a thread

* Fix tests that use jobs and tasks

* Add tests for subprocess call inside alias

* Add news

* Remove type declarations for _jobs_thread_local

Fixes the mypy error: "Type cannot be declared in assignment to non-self attribute"

Co-authored-by: Noorhteen Raja NJ <jnoortheen@gmail.com>
2022-08-03 11:37:26 +05:30
Gil Forsyth
2d75729962
fix(styles): fall back to default style if style not found (#4906)
The fallback is already the default behavior if the user has `pygments`
installed, but if they don't we were awkwardly bailing out here and
preventing startup.
2022-08-03 11:35:28 +05:30
pre-commit-ci[bot]
5f5dab88c8
[pre-commit.ci] pre-commit autoupdate (#4904)
updates:
- [github.com/pycqa/flake8: 4.0.1 → 5.0.2](https://github.com/pycqa/flake8/compare/4.0.1...5.0.2)
- [github.com/asottile/pyupgrade: v2.37.2 → v2.37.3](https://github.com/asottile/pyupgrade/compare/v2.37.2...v2.37.3)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-02 08:32:12 +05:30
Peter Ye
4333f362a1
Fix virtualenv Path import and bump version (#4903)
virtualenv.util.path.Path got removed when virtualenv 20.16.0 dropped
support for running on Python 2.7

pathlib.Path should be used instead. For example, see
a45c7d6e50/src/virtualenv/activation/python/__init__.py
2022-07-31 10:32:01 +05:30
Andy Kipp
1e20ee04c8
Merge pull request #4894 from xonsh/anki-code-patch-1
Create FUNDING.yml
2022-07-29 23:04:05 +06:00
Andy Kipp
3bbd09b565
Update README.rst: install from pip (#4898)
Update README.rst

Co-authored-by: Noorhteen Raja NJ <jnoortheen@gmail.com>
2022-07-29 13:10:26 +05:30
Andy Kipp
4c6ad2cb03
Update README.rst: add link to xontrib-template (#4897)
Update README.rst
2022-07-29 13:08:43 +05:30
Andy Kipp
b5a282b294
Update README.rst (#4895)
* Update README.rst

* Update README.rst

* Update README.rst
2022-07-28 22:52:45 +05:30
Andy Kipp
14e6dff64d
Create FUNDING.yml 2022-07-26 13:48:15 +06:00
pre-commit-ci[bot]
36fb35d309
[pre-commit.ci] pre-commit autoupdate (#4893)
updates:
- [github.com/pre-commit/mirrors-mypy: v0.961 → v0.971](https://github.com/pre-commit/mirrors-mypy/compare/v0.961...v0.971)
- [github.com/asottile/pyupgrade: v2.37.1 → v2.37.2](https://github.com/asottile/pyupgrade/compare/v2.37.1...v2.37.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-26 00:27:15 +05:30
jgart
8ac9f22d56
docs: Add GNU Guix information (#4891) 2022-07-25 15:35:00 +05:30
Noorhteen Raja NJ
8a5b50e084
Update test_pip_completer.py (#4890)
* Update test_pip_completer.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-25 15:05:00 +05:30
Tim Gates
37f6adb159
docs: Fix a few typos (#4889)
There are small typos in:
- docs/python_virtual_environments.rst
- setup.py
- xonsh/procs/specs.py
- xontrib/abbrevs.py

Fixes:
- Should read `interpreter` rather than `intrepreter`.
- Should read `dictionary` rather than `disctionary`.
- Should read `descriptors` rather than `descriptiors`.
- Should read `because` rather than `becuase`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
2022-07-23 04:42:46 +05:30
Andy Kipp
0214b878de
Update README.rst (#4877)
* Update README.rst

* Update README.rst
2022-07-15 02:21:40 +05:30
Gil Forsyth
649fad8a7c
fix(xpip): never add sudo, append --user instead (#4879) 2022-07-14 23:35:40 +05:30
pre-commit-ci[bot]
c8c1fd1071
[pre-commit.ci] pre-commit autoupdate (#4874)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v2.34.0 → v2.37.1](https://github.com/asottile/pyupgrade/compare/v2.34.0...v2.37.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-11 23:56:34 +05:30