mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 17:30:59 +01:00
20 lines
543 B
ReStructuredText
20 lines
543 B
ReStructuredText
**Added:**
|
|
|
|
Since shells are all about paths, some syntactic sugar to make using
|
|
``pathlib.Path`` objects easy is added:
|
|
|
|
* p-strings: ``p'/foo/bar'`` is short for ``Path("/foo/bar")``
|
|
* p-backticks: the ``p`` modifier to a backticks search (``p`.*` ``) returns a
|
|
list of ``Path`` objects instead of strings. This can be combined with the
|
|
existing modifiers, eg ``pg`**` `` to use glob instead of regex. (This only
|
|
applies in python mode).
|
|
|
|
**Changed:** None
|
|
|
|
**Deprecated:** None
|
|
|
|
**Removed:** None
|
|
|
|
**Fixed:** None
|
|
|
|
**Security:** None
|