Commit graph

1057 commits

Author SHA1 Message Date
Gil Forsyth
6cf78656c7
docs: remove reduntant table of contents (#5042)
Fixes https://github.com/xonsh/xonsh/issues/5041
2023-02-02 08:49:52 -05:00
Tobias Becker
d173ad7f3b
Add a warning to the docs about $args in ExecAlias (#5033) 2023-01-17 13:05:39 -05:00
Mark Bestley
1e6faa47ce
Remove python REPL prompts so that you can copy the code (#5022) 2023-01-11 17:27:44 -05:00
Gil Forsyth
bcf2592b7d
doc: remove references to deprecated RC location, update changelog (#5012) 2022-12-14 22:00:15 -05:00
Vasilis Gerakaris
1d61d8d711 Document that xonshrc files not applied on non-interactive mode 2022-10-20 03:20:33 +05:30
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
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
jgart
8ac9f22d56
docs: Add GNU Guix information (#4891) 2022-07-25 15:35: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
2042d78d0d
Removed GTM (#4870)
Update index.html
2022-07-09 15:40:48 +05:30
Andy Kipp
ff7b2741ff
Added Google Tag Manager 2022-07-07 01:41:22 +04:00
Noorhteen Raja NJ
cbf23e60fb
Pre commit ci (#4863) 2022-07-01 11:47:01 -04:00
Noorhteen Raja NJ
3716f3da86
Pr5 xontrib entrypoints (#4827) 2022-06-17 12:39:12 -04:00
Peter Ye
b2c42ed2f3
feat: f-glob strings (#4835)
* feat: add support for f-glob strings

Move xonsh_pathsearch() into the BaseParser class because it needs to use self._set_error()

Parametrize 6 backtick tests in test_parser.py into test_backtick() (and add cases for f-glob strings)

* add news

* docs: update tutorial

* fix news file
2022-06-12 13:45:16 +05:30
Noorhteen Raja NJ
347bf201de
fix: docs building (#4820) 2022-05-30 20:49:38 +05:30
Noorhteen Raja NJ
ecc1ab1020
xontrib load/unload (#4817)
* feat: add function to make event registration from function signature

* docs: add xontrib special functions description

* feat: handle xontribs with special functions

also reduce usage of XSH singleton

* fix: missing XSH

for now import singleton

* docs: fix .rst format

* fix: failing tests

* feat: implement primitive xontrib-unload and xontrib-reload

* chore: give explicit name

* docs: update doc
2022-05-30 15:33:17 +05:30
Gil Forsyth
572ebb576d
docs: change theme to furo (#4809)
Trying out a new theme -- I really like the way `furo` looks and I think
it makes it easier to navigate our overly dense docs pages.
2022-05-18 20:36:45 +05:30
dev2718
e62c0e9cec
Returncode enhancements (#4798)
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2022-05-10 09:43:32 -04:00
Noorhteen Raja NJ
15ff663530
Rm xontrib meta (#4790) 2022-05-04 15:02:20 -04:00
Gil Forsyth
7b0bc0f75a
fix: add M1 bash-completion path to osx defaults (#4740)
* docs: change language choice for "reasonable" behavior

* fix: add M1 bash completion location to defaults on OSX
2022-03-28 21:43:11 +05:30
Noortheen Raja
8cff41b081 chore: move out jupyter, mpl, distributed, jedi xontribs
they are require extra packages for testing and usage
closes #4726
2022-03-24 19:49:30 +05:30
Noorhteen Raja NJ
d49b164379
gitstatus modular (#4697) 2022-03-21 11:18:36 -04:00
E Pluribus Unum
6fc77f2fcb
do to following -> do the following (#4728)
* do to following -> do the following

very minor spelling correction

* Minor spelling corrections
2022-03-21 10:05:20 +05:30
Kyllingene
1889d3e2ea
Clarified use of time_format in docs (#4714)
* Added reference to ``PROMPT_FIELDS`` section in ``time_format`` definition

* Forgot the news item, added now

* Generalized reference to PROMPT_FIELDS
2022-03-15 08:17:16 +05:30
Gil Forsyth
46df765628 Add goat counter to track hits on the docs 2022-03-03 10:45:19 -05:00
dev2718
1aefbf3b35
Fix: detype None env-vars to '' to fix #4600 (#4649)
* detype untyped and path env-vars to ""; path_to_str("") == None

* update env-var-tutorial, add news

* update test_expandvars, test_expand_path, test_register_custom_var_str

* trigger CI-rerun since unrelated osx test failed

Co-authored-by: Alexander Firbas <alexander.firbas@gmail.com>
2022-01-21 14:46:50 +05:30
Noorhteen Raja NJ
9fbecfc155
feat: use github actions to deploy docs (#4641)
* feat: use github actions to deploy docs

fixes #4473

* fix: install xonsh

* fix: doc action

* chore: support *.md for documentation

* fix: remove hardcoded docs link

it affects local testing

* refactor: move sphinx extensions to its own package

* fix: remove deprecated get_theme_dir

As of Sphinx 1.2, this is passed to Sphinx via a ``setup.py`` entry
point,
and no longer needs to be included in your documentation's
``conf.py``.

* feat: jinja2 render without affecting incremental build

* style:

* feat: auto generate API doc

no need to create a file for each module

* chore: watch top-level and nested files

* refactor: update lib api-docs as well

* fix: import errors when doc generated

for some modules

* fix: relative path

* feat: add release handling

* Update .github/workflows/docs.yml

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

* refactor: use github-app-token

* chore: deploy docs only when merged

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2022-01-18 11:38:27 -05:00
Noorhteen Raja NJ
c2d25ac251
pre-commit hook for pyupgrade (#4583)
* chore: add pyupgrade

* refactor: upgrade code to py3.7+

ran `pre-commit run pyupgrade -a` while excluding changes to ply

* fix: flake errors
2021-12-06 14:42:26 -05:00
Jason R. Coombs
03ddd829d6
Clarify behavior for capturing and storing output in the history. (#4578)
* Clarify behavior for capturing and storing output in the history. Fixes #4576.

*  Fade to black.
2021-12-02 00:12:42 +05:30
Noorhteen Raja NJ
b2516737b6
code refactor (#4571)
* style:

* refactor: tests of xoreutils
2021-11-30 08:23:32 -05:00
Noorhteen Raja NJ
adafa20b88
adopt NEP-0029 (#4568)
* chore: adopt NEP-0029 for py version deprecation policy

fixes #4560

* chore: drop py3.6 from CI

* docs: add news item

* fix: failing qa because latest version to flake8-bugbear

see https://github.com/PyCQA/flake8-bugbear/issues/208

* chore: require >=py3.7
2021-11-29 12:48:48 -05:00
Noorhteen Raja NJ
d5c6c9e4e6
docs: remove xompletions api doc (#4479) 2021-11-27 09:59:23 -05:00
omjadas
a49a538ab2
Simplify foreign functions (#4393)
* chore: simplify foreign functions

* fix: sourcing multiple foreign files

* refactor: address review comments

* Update docs/aliases.rst

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

* refactor: run black

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-11-23 17:01:42 -05:00
Evgeny
3d753ea3be
Add Sublime Text 4 extension to the Editors page (#4552) 2021-11-23 04:06:48 +05:30
IJR222
7331d8aee5
Update editors.rst (#4526)
Fixed typo.
2021-11-02 08:52:05 -04:00
FranzAtGithub
9c4a95d055
Fix typo in xpip command for updating xonsh (#4468) 2021-09-14 12:55:19 -04:00
Noorhteen Raja NJ
d7dbfa9011
Lab/py control file (#4420)
* feat: use python's compile for rc.py

* docs: add news item

* docs: update news item

* test: add tests for py-control files

* fix: rst news item

* docs: update news item

* docs: add sample rc.py
2021-08-19 12:40:22 -04:00
Daniel Shimon
201b24235e
docs: Remove highlight shortcuts 'beta' tag (#4403) 2021-08-16 11:42:34 -04:00
Daniel Shimon
f5acbe30d4
Ctrl backspace delete word (#4402)
* ptk: key-bindings: Add CTRL-Backspace to delete a single word

* news: Add ctrl-backspace-delete-word
2021-08-01 00:38:31 +03:00
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
Peter Ye
b74bdbcc72
docs: fix typo in prompt tutorial (#4335) 2021-06-22 19:49:54 +03:00
Peter Ye
4f3c5196f3
docs: Remove duplicate Installation heading (#4326) 2021-06-20 12:51:31 +03: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
38295a1dd9
Remove globals (#4280)
* refactor: remove usage of global variables in abbrevs.py

* chore: add flake8-mutable to prevent mutable defaults

* fix: abbrevs expand test

* refactor: add xonsh session singleton

* refactor: fix circular errors when using xonshSession as singleton

* refactor: remove black magicked builtin attributes

* style: black format tests as well

* refactor: update tests to use xonsh-session singleton

* refactor: update abbrevs to not use builtins

* test: remove DummyCommandsCache and patch orig class

* fix: failing test_command_completers

* test: use monkeypatch to update xession fixture

* fix: failing test_pipelines

* fix: failing test_main

* chore: run test suit as single invocation

* test: fix tests/test_xonsh.xsh

* refactor: remove builtins from docs/conf.py

* fix: mypy error in jobs

* fix: test error from test_main

* test: close xession error in test_command_completers

* chore: use pytest-cov for reporting coverage

this will include subprocess calls, and will increase coverage

* style:
2021-05-20 13:14:26 +03:00
Gordon Ball
d48c93bdb5
Add support for rc.d drop-in configuration directories (#4256)
* Add support for rc.d drop-in configuration directories

* main: change how --rc, --no-rc are handled

Explicitly pass --no-rc rather than signalling it as an empty --rc, to
indicate that we should suppress both XONSHRC and XONSHRCDIR in that
case.

* Rename XONSHRCDIR -> XONSHRC_DIR

* xonshrc_context: document setting env for XONSHRC_DIR

* main: --rc foo.xsh should suppress XONSHRC_DIR
2021-05-11 16:42:37 -04:00
Andy Kipp
22cc03b462
docs: Fix image preview for the twitter (#4274)
* twitter

* twitter

* 3.6

Co-authored-by: a <a@a.a>
2021-05-10 09:38:24 -04:00
Andy Kipp
039ce96dcd
feat: Added ability to get arguments list in ExecAlias (#4201)
* black

* news

* test

* alias_argN

* ExecAlias docs

* note about merge operator

* $args

* docs

Co-authored-by: a <a@a.a>
2021-04-15 09:39:13 -04:00
francium
c563ebb7a2
Improve homepage navigation links (#4228) 2021-04-15 09:36:34 -04:00
Evgeny
3df1426f8e
Updated references to point to 'main' instead of 'master' (#4202)
* doc: update path to the most recent xonsh source code ('master' to 'main')

* doc: change 'master' to 'main' in some doc references
2021-03-30 13:40:43 -04:00
Andy Kipp
9618fa2a36
Added casting CommandPipeline to int, hash, str (#4205)
* cast

* test

* added tests and str

* news

* test

* skip windows

* docs

* docs

* tests

Co-authored-by: a <a@a.a>
2021-03-30 13:36:01 -04:00