Commit graph

2078 commits

Author SHA1 Message Date
Walter A. Boring IV
c3246236e1
add lines changed and removed in gitstatus (#4133)
This patch adds the number of lines added and removed as part
of the gitstatus line.
2021-03-04 15:53:30 -05:00
Gil Forsyth
6876131607 Updated CHANGELOG for 0.9.27 2021-03-03 11:29:59 -05:00
anki-code
86c4dec1bb
New awesome landing (v3) (#4122)
* awesome landing

* text

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* Talks about xonsh

* Q&A

* xontribs from github

* xontribs from github

* Update docs/_templates_overwrite/index.html

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

* Update docs/_templates_overwrite/index.html

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

* xontribs from github

Co-authored-by: a <a>
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-03-02 08:50:54 -05:00
Noorhteen Raja NJ
a5522dbb1e
Remove vended ptk (#4107)
* refactor: remove vended_ptk from project

* refactor: handle removal of ptk vendoring

* refactor: update usage of os.scandir

* fix: update incorrect import xonsh.platform.scandir

* test: update os.scandir

* test: update tests that check ptk version matrix

* fix: add missing import ctypes
2021-03-01 11:56:32 -05:00
Adam Schwalm
27ed9be301
Perform path completion filtering based on expanded path (#4115)
* Perform path completion filtering based on expanded path

This fixes issues with the cd and rmdir completers not working
correctly due to os.path.isdir returning false for paths like
'~/example'.

* Avoid running subsequent completers for cd/rmdir

Raise StopIteration in the cd and rmdir completers if nothing is
found. This prevents the later completers like the generic 'path'
completer from running and returning incorrect results.
2021-03-01 11:44:32 -05:00
anki-code
b862e0cec0
Strict permission for history file (json, sqlite) (#4121)
* history file permission

* rst

* rst

* rst

* lint

Co-authored-by: a <a>
2021-03-01 10:20:37 -05:00
anki-code
44b9ee115b
Added xontrib-history-encrypt (#4120)
* xontrib-history-encrypt

* black

Co-authored-by: a <a>
2021-02-26 10:01:41 -05:00
anki-code
aad1da7270
SQLite History Backend: show message instead of exiting when disk is full (#4116)
* SQLite History Backend: show message instead of exiting from xonsh when disk is full.

* a bit cleaning

Co-authored-by: a <a>
2021-02-25 09:33:55 -05:00
Evgeny
eacb2e5cc0
feat: add xontrib-cd (#4109) 2021-02-22 09:32:34 -05:00
Noorhteen Raja NJ
c2d5e60799
Py39 support (#4101)
* fix: handle ast.Index and ast.ExtSlice change while Parsing

related to #4100, #4099, #4068, #4038, #4028, #4005,

* fix: py39 raises when lineno & col not given

TypeError: required field "col_offset" missing from keyword

* fix: tuple inside scbscriptor support for py39

* chore: enable py39 ci checks

they were silently failing before

* test: a backlog test for attributes inside subscriptors

this would require debugging deep into the ply parser methods.

* docs: add news item

* test: skip test_rc_with_modified_path on windows

* Update tests/test_parser.py

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

* test: mark failing tests for py39 parser

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-02-17 12:31:33 -05:00
Nate Simon
c4e7843598
add disown command (#4090)
* add "disown" internal command
This command will remove jobs from the shell's job table, allowing the command
to continue running after the shell exits. Configuration options are provided
to manage how suspended background jobs are handled after being disowned.

* job-ctrl-disown code style update

* job-ctrl-disown style updates + change arg --cont to --continue

* Trim extra "=" in doc for "disown" cmd

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

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-02-09 10:54:17 -05:00
Gil Forsyth
ff8b470d02 Updated CHANGELOG for 0.9.26 2021-02-04 12:36:41 -05:00
Noorhteen Raja NJ
1622697194
feat: some python libraries depend on isatty to check for terminal capabilities (#4013)
related to #4008

style: linter rst fix

refactor: update isatty of proxy functions
2021-02-04 11:44:01 -05:00
Gao, Xiang
4779930806
Add tcg to xontrib (#4076)
* Add tcg to xontrib

* Create tcg.rst
2021-01-31 17:22:41 -05:00
Noorhteen Raja NJ
d50cf32f84
Feat abbrevs callback (#4031)
* feat: support callbacks in abbrevs dict

facilitate solving problems like #3642

fixes #3642

* test: add tests for abbrevs and news item

* fix: mypy error

* refactor: update imports for xontrib_meta module
2021-01-29 12:18:22 -05:00
Gil Forsyth
71fe9014d2 Updated CHANGELOG for 0.9.25 2021-01-29 08:58:58 -05:00
Aneesh Durg
1f7f33c93f
Add $HISTCONTROL=ignorespace support (#4062)
* Add $HISTCONTROL=ignorespace support

* Add news and fix formatting

* Move ignore space to happend in append and fix test bugs

* invert conditional

* remove leftover debug info
2021-01-25 16:37:29 -05:00
yggdr
432df061c6
Fix libc detection and uptime functionality on FreeBSD (#4049)
* Fix libc detection on FreeBSD

On FreeBSD /usr/lib/libc.so is an LDScript text file, ctypes.CDLL can't handle
those. So we hardcode the current version number, lest we'd need to use the less
efficient ctypes.util.find_library function. This should be alright, since the
last increase in libc version number on FreeBSD was over 10 years ago.

* sysctlbyname needs bytes, not unicode strs

* Add news item for FreeBSD libc fix
2021-01-06 10:34:22 -05:00
Danny Sepler
97cb072f9f
Add a better test suite for "vc.py", and fix "include_untracked" logic (#4041)
* move test_prompt to test_base

* move test_prompt to test_vc

* revamp test_vc file

* Add VC_GIT_INCLUDE_UNTRACKED variable, move test_prompt.py to test_base.py

* reduce test_base
2021-01-05 09:26:19 -05:00
anki-code
d0b22652b4
Welcome message cosmetic changes (#4036)
* welcome

* welcome

* Update xonsh/xonfig.py

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

Co-authored-by: a <a>
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-01-05 09:21:10 -05:00
Asaf Fisher
f3240c9c6d
Add Open in google cloudshell in the readme. (#4040)
* README: Add `open in google cloud shell` button in the readme 🤩

* news: Add google cloud button news
2021-01-04 12:46:56 -05:00
Asaf Fisher
da415caf06
Add 'dict' merging operation for the aliases class (#4037)
* aliases: Add merging operation to the aliases dict

* tests: Add tests to the aliases merging operation

* news: Add summary about the Alias merging functionality
2021-01-04 12:44:21 -05:00
anki-code
92dd822502
Using ujson (if installed) in LazyJSON to loading json history 15% faster (#4025)
* faster json history

* news

* mypy

Co-authored-by: a <a>
2021-01-04 12:32:14 -05:00
Leandro Emmanuel Reina Kiperman
e7e6fd90a7
Edit sys.path while loading RC files (squashed) (#3950) 2021-01-04 12:31:05 -05:00
Noorhteen Raja NJ
17961e3c24
feat: add xontrib-powerline3 (#4009) 2021-01-04 12:22:29 -05:00
Noorhteen Raja NJ
bceaafae4d
Add groups to env vars (#4026)
* feat: add grouped-settings for env variables

fixes #4014

style: fix mypy errors

chore: update testing requirements versions

fix: update xonsh.tools import error

* chore: add news item

* fix: update Var.with_default handling env defaults

* fix: set env var.doc_default=DefaultNotGiven

there is a custom handler for it

* chore: update travis

speedup docs generation

* chore: add command to serve docs during development

* docs: add jinja2 helpers/renderers extension for sphinx

* docs: update envvars document

* docs: fix docs failing

* Update xonsh/environ.py

commit suggestion

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

* Update xonsh/environ.py

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

* Update xonsh/environ.py

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

* Update xonsh/environ.py

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

* Update xonsh/environ.py

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

* Update xonsh/environ.py

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

* refactor: update rst-extension

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-01-04 12:21:44 -05:00
Anthony Scopatz
17f86d359e
callable default skips validation (#3668)
* callable default skips validation

* default value

* black

* today func

* store called defaults
2020-12-18 14:42:18 -05:00
anki-code
eac1e29397
SQLite history backend now has the same logic of storing stdout to the memory like json history backend (#4006)
* fix logic

* bump tests

Co-authored-by: a <a>
2020-12-18 14:13:12 -05:00
Noorhteen Raja NJ
f4a7f1f22f
chore: bring back codcoverage report (#3998)
* chore: bring back codcoverage report

* chore: the run-tests.xsh script can't print to stdout

* test: combine coverage on multiple runs

* test: sort coverage report by coverage percent

* chore (ci): split test step

* docs: add news item for code-coverage

* chore: try coverage parallel

but this will not work with --append mode.
2020-12-18 09:04:42 -05:00
Noorhteen Raja NJ
2d308ea9b7
feat: add xontrib-avox-poetry (#4023) 2020-12-17 14:27:58 -05:00
anki-code
b5f84cfb3e
The change that allows Nuitka build the xonsh binary (#4012)
* nuitka fix

* bump tests

* fix flake

Co-authored-by: a <a>
2020-12-17 14:22:30 -05:00
Noorhteen Raja NJ
a083d28461
Completer py api (#4018)
* feat: add index to sqlite-history table

* feat: support style argument to RichCompletion object

this will enable setting style for ptk completers

* feat: add xonsh cli/argparser utils

* feat: add python api for adding/removing completers

fixes #3972

* fix: mypy error

* docs: add api doc

* fix: circular imports

* docs:

* fix: testing get-doc cross-platform

* Update xonsh/completers/_aliases.py

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

* Update xonsh/completers/_aliases.py

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

* style: convert % to f-strings

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

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2020-12-16 14:26:22 -05:00
Noorhteen Raja NJ
9fe6ef48cf
feat: add xontrib-commands (#4002) 2020-12-03 09:48:14 -05:00
Anthony Scopatz
f2ab998f33
Proc dep warnings (#3908)
* dep warnings

* black

* proc set
2020-12-03 09:47:02 -05:00
Noortheen Raja
e49715ac7d fix: rst syntax error 2020-11-26 09:30:35 +05:30
Noortheen Raja
6c22578d87 docs: correct news item 2020-11-26 09:28:06 +05:30
Noortheen Raja
5b6ea6c993 feat: use PyperClipboard if available for ptk
closes #3989
2020-11-26 09:28:06 +05:30
Anthony Scopatz
24862e03c9
Merge pull request #3983 from jnoortheen/upgrade-black-20.8b1
Upgrade black 20.8b1
2020-11-25 13:43:55 -06:00
Anthony Scopatz
d8115ec1e9
Merge pull request #3986 from daniel-shimon/colorize-and-or
pygments: Colorize 'and'/'or' keywords like '&&'/'||'
2020-11-25 12:57:10 -06:00
Anthony Scopatz
a1b95730c0
Merge pull request #3992 from colons/vc_branch-in-docs
Fix the import in the branch colour override example.
2020-11-25 12:47:42 -06:00
Noortheen Raja
c23f2209ac feat: add xontrib-broot package 2020-11-25 20:00:33 +05:30
colons
6c4d2a05fa Fix the import in the branch colour override example. 2020-11-25 12:10:42 +00:00
Noortheen Raja
ba0831108f docs: add news item 2020-11-25 12:46:35 +05:30
David Strobach
7fb4d06cb2
ulimit: Change default to access soft limits (#3990)
* ulimit: Change default to access soft limits

It makes more sense to manipulate "soft" limits by default, because
those are the limits intended to be user-adjustable. This is also
what bash does. Originally, I made ulimit to default to "hard" limits,
because I was for some reason convinced that it's what bash does.

* Changelog entry
2020-11-23 16:23:46 -05:00
Noorhteen Raja NJ
5ea2ae4f8f
refactor: rewrite xontribs/jedi.xsh -> xontribs/jedi.py to take advan… (#3965)
* refactor: rewrite xontribs/jedi.xsh -> xontribs/jedi.py to take advantage of python tooling

* chore: update elm ci workflow

* test: update test for jedi xontrib
2020-11-23 16:21:43 -05:00
Daniel Shimon
05d9b61fc1 pygments: Colorize 'and'/'or' keywords like '&&'/'||' 2020-11-19 08:41:35 +02:00
Noorhteen Raja NJ
ee46b17255
chore: add pip cache for github actions (#3973)
this will further speedup the workflow.
- also the macos and windows should now have proper cache with conda
- use jinja to template workflows that looks the same
2020-11-17 14:48:22 -05:00
Dominic Ward
aa7279b987
Path complete given path literal (#3828)
* Support path completion from path literal

* Test path completion when prefix is partial p-string

* Update news

* Update news

* fix test: expect string literal

* Support completion of raw-path strings

* Resolve raw-string issues when testing on Windows

* Simplify p-string prefix checks

* Fix test

* Update news

* fix news: rst

* Use raw path string to simplify test

* Test path from partial string

* Try case sensitive completion
2020-11-16 09:46:42 -05:00
Noortheen Raja
b01bf13bd0 fix: xonfig wizard - make_xontrib
fixes #3971
2020-11-12 11:48:02 +05:30
Anthony Scopatz
913077b0b0
Merge pull request #3960 from jnoortheen/use-individual-file-for-xontrib-meta
Use individual file for xontrib meta
2020-11-10 14:44:41 -06:00