Commit graph

10108 commits

Author SHA1 Message Date
Daniel Shimon
279d0ec638
Auto suggest word alias (#4401)
* ptk: key-bindings: Add CTRL-Right to auto-suggest a word

* news: Add auto-suggest-word-alias
2021-07-29 12:50:47 +03:00
Daniel Shimon
8dac83a9a0
Fix jedi path completion (#4400)
* xontrib: jedi: Don't complete paths with '~'

* tests: xontrib: jedi: Update tests

* news: Add fix-jedi-path-completion
2021-07-29 10:02:25 +03:00
Evgeny
6591346243
feat: add xontrib-homebrew (#4389)
replaces xontrib-linuxbrew by expanding OS support to Homebrew on macOS
2021-07-28 10:17:55 -04:00
Noorhteen Raja NJ
9ae302fb11
feat: use rst-linter for news items check (#4398) 2021-07-28 10:16:35 -04:00
Daniel Shimon
a72a9eb08e
Procs wsl1 check (#4387)
* xonfig: Print WSL version

* procs: Use pipeline groups in WSL2

* news: Add procs-wsl1-check
2021-07-26 16:34:00 -04:00
Noorhteen Raja NJ
73cf0c27be
test: remove redundant xonsh session mock fixture (#4390)
xonsh_execer
2021-07-25 18:38:10 +03:00
Noorhteen Raja NJ
112440ef63
feat: support var-args signature for aliases (#4379)
* feat: support var-args signature for aliases

* test: add test for callable alias
2021-07-25 13:15:05 +03:00
Daniel Shimon
f1c5372d3a
completers: Normalize descriptions (#4388)
Start with uppercase and end with a period
2021-07-25 09:05:25 +03:00
Daniel Shimon
e9b12c8b70 Updated CHANGELOG for 0.10.1 2021-07-24 22:47:37 +03:00
Daniel Shimon
603ddba6ba bumped version to 0.10.1 2021-07-24 22:47:37 +03:00
Daniel Shimon
952742b5d1 Updated authorship for 0.10.1 2021-07-24 22:47:37 +03:00
Gyuri Horak
98d4d2a184
Short color token name support for register_custom_style() (#4339) (#4342) 2021-07-24 18:37:51 +03:00
Jeremy Schlatter
09fcab65d2
fix surprising scoping behavior in execx and xonsh -c (#4363) (#4364)
* fix #4363

* fix test_integrations.py

* add tests for issue 4363

* fix regression

* add news item

* fix formatting with black

* fix news formatting
2021-07-24 17:17:37 +03:00
Daniel Shimon
9205b00e2c appimage: Upgrade to python 3.9 2021-07-24 14:43:38 +03:00
Daniel Shimon
26f41ab642 Revert "Temporarily remove AppImage from rever"
This reverts commit 3ce1f2e56b.
2021-07-24 14:43:38 +03:00
Daniel Shimon
3ce1f2e56b Temporarily remove AppImage from rever 2021-07-24 13:34:19 +03:00
Daniel Shimon
91e8e52e76 Updated CHANGELOG for 0.10.0 2021-07-22 02:51:00 +03:00
Daniel Shimon
441b6cdbd1 bumped version to 0.10.0 2021-07-22 02:50:59 +03:00
Daniel Shimon
62b5b78401 Updated authorship for 0.10.0 2021-07-22 02:50:59 +03:00
Daniel Shimon
a435ae2ae6 rever: Install bash-completion in docker 2021-07-21 01:52:46 +03:00
Daniel Shimon
6e6b76e118 rever: Use pip deps in docker container 2021-07-21 01:52:04 +03:00
Daniel Shimon
1c0d05f90a rever: Correctly parse requirements for conda 2021-07-21 01:52:04 +03:00
Jeremy Schlatter
db99b64635
code simplifications (#4373)
* code simplifications

* add blank news item

There seems to be a CI check that requires this for each PR, But this
seems like it shouldn't be included in the next release notes, so I'm
leaving it blank.
2021-07-18 09:15:15 +03:00
Jeremy Schlatter
7cf0307a0d
fix typos (#4362) 2021-07-09 15:55:54 -04:00
Noorhteen Raja NJ
c06ed5ef2d
refactor: small speedup by late import (#4345)
* refactor: small speedup by late import

* refactor: keep the order of paths in cmd_cache

* refactor: small nit in color_tools
2021-07-06 18:37:22 +03:00
Daniel Shimon
daa27337dd
Amalgamated release (#4355)
* pip: Ensure the release version of xonsh is amalgamated

It will be amalgamated regardless of whether amalgamate.py is installed

* manifest: Remove non-existent PLY files

* pip: Add completion parser table

* amalgam: Update init files
2021-07-05 20:59:44 +03:00
Noorhteen Raja NJ
c578c37f83
refactor: remove non-source files from ply vendored (#4321)
* refactor: remove non-source files from ply vendored

* chore: xonsh/ply upgrade command from makefile
2021-07-01 09:35:57 -04:00
Noorhteen Raja NJ
a52c364569
refactor: remove unused argument to parser (#4344) 2021-07-01 15:17:45 +03:00
Peter Ye
86f02c0341
Stop $() from silently capturing stderr (#4336)
* Stop $() from silently capturing stderr

* Add test
2021-06-24 09:43:21 -04:00
Peter Ye
9b79e4186e
Enable bracketed paste mode for readline (#4337) 2021-06-24 09:31:54 -04:00
Peter Ye
b74bdbcc72
docs: fix typo in prompt tutorial (#4335) 2021-06-22 19:49:54 +03:00
Peter Ye
715fb867b4
Fix parser for subprocess command with leading whitespace (#4331)
* Fix parser for subprocess command with leading whitespace

* Add tests for subprocess leading space

* Add news

* Parameterize parser tests
2021-06-22 18:42:01 +03:00
Daniel Shimon
f87be90d6f
procs: Add $XONSH_CAPTURE_ALWAYS variable for opt-in interactive capt… (#4283)
* procs: Add $XONSH_CAPTURE_ALWAYS variable for opt-in interactive capturing

* tests: Add tests for $XONSH_CAPTURE_ALWAYS

* tests: Fix tests wrt $XONSH_CAPTURE_ALWAYS

* news: Add optional-interractive-capture
2021-06-21 12:36:37 -04:00
Daniel Shimon
985773a5c1
completers: bash: Fix completing an empty prefix (#4316) 2021-06-20 12:54:36 +03:00
Peter Ye
4f3c5196f3
docs: Remove duplicate Installation heading (#4326) 2021-06-20 12:51:31 +03:00
Peter Ye
d33d60ee3e
Fix the handling of colons when mixed with comments (#4332)
* Add ends_with_colon_token tool

* Add execer test for comment ending with a colon

* Use ends_with_colon_token() to catch non-indented blocks in execer

* Use ends_with_colon_token() for automatic indentation in prompt_toolkit and readline

* Add news
2021-06-20 12:50:03 +03:00
Noorhteen Raja NJ
33d2a1f04e
feat: make completer accept generators (#4319)
* feat: make completer accept generators

fixes #3968

* docs: add news item

* refactor: handle None value of $COMPLETION_QUERY_LIMIT
2021-06-20 12:42:30 +03:00
Daniel Shimon
8e547d0008
linux: Quote command-not-found argument (#4317) 2021-06-15 19:56:26 +03:00
Daniel Shimon
2ed6fc2e01
aliases: Fix $__ALIAS_NAME for anonymous functions (#4325) 2021-06-15 15:24:55 +03:00
Noorhteen Raja NJ
de463f019d
chore: update mypy to 0.902 (#4324) 2021-06-14 23:10:22 +03:00
Peter Ye
7a58071d1f
Fix atdollar_no_output test (#4322) 2021-06-14 08:47:05 +03:00
Noorhteen Raja NJ
f3d314bc36
chore: move news items check to qa (#4314)
fixes #4313
2021-06-11 15:01:35 +03:00
Peter Ye
354f446f54
Fix empty command error message (#4308)
* fix pathsplit

* fix error message for empty command

* add news

* fix formatting

* fix atdollar_no_output test
2021-06-11 14:11:19 +03:00
Noorhteen Raja NJ
45b588c52e
feat: add config option to hide gitstatus prompt fields (#4294)
* refactor: create namedConstants for std colors

* feat: add gitstatus hide option

* test: update test_vc to not leak xsh object
2021-06-11 02:24:24 +03:00
JackofSpades707
a4ca034b9c
Address ON_WSL() bug #4310 (#4311)
* Address ON_WSL() bug #4310

Solution for #4310
`return "microsoft" in platform.release().lower() # might be a better solution?`
`return "wsl" in platform.release().lower() # might be a better solution?`

* Addressed #4310 - Added output for ON_WSL

For some reason this wasn't included in the output when running `xonfig`
Perhaps this was on purpose, but wsl is pretty popular and cygwin is detected so I figure I'd address that

* only display "on wsl" field if we detect linux

* Corrected import

* added news entry

* minor clarification in news entry

* Update news/fix_wsl_detection.rst

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* Update news/fix_wsl_detection.rst

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* This should pass CI tests

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-06-08 13:12:56 -04:00
Noorhteen Raja NJ
3ce8c9b337
add py310 (#4270)
* chore: adding py310 to ci

though this will require code/parser changes, this is to prepare for
upcoming adoption

* fix: set python version as string

* fix: reference to master -> main

* fix: coverage is not reported in master

- disable amalgamation
	1. during coverage report tests
	2. qa tools like mypy may follow imports
- use python 3.9 for coverage and qa report. since it will have more
coverage and better typing support

* chore: use py3.10 with setup-py action

* chore: add news-item check job

* fix: py3.10 error while starting

the match statement is not supported.
while the syntax support is only upto py3.8

* fix: news-item checker

* chore: enable fail report for py310 tests

* test: add test for ptk_shell
2021-06-07 13:40:40 -04:00
Daniel Shimon
099d301fae
Update completers tutorial (#4307)
* docs: completions: Improve RichCompletion and CompletionContext api docs

* docs: completers: Update tutorial

* completers: tools: Print non-default values in RichCompletion's __repr__

* completers: Add $XONSH_TRACE_COMPLETIONS variable

* news: Add update-completers-tutorial
2021-06-05 19:12:58 +03:00
Noorhteen Raja NJ
2c8b3c9c34
style: (#4306) 2021-06-05 01:15:58 +03:00
Daniel Shimon
4c055d82e8
Update completer cli (#4299)
* completers: Add new completers after the non-exclusives

* completer: Print whether a completer is non-exclusive

* news: Add update-completer-cli
2021-05-30 09:42:55 +03:00
Daniel Shimon
214997d170
pre-commit: Lint tests dir (#4298) 2021-05-29 23:44:31 +03:00