mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
Add news entry
This commit is contained in:
parent
8a3c8a6832
commit
86b5c0fcc5
1 changed files with 34 additions and 0 deletions
34
news/pf_strings.rst
Normal file
34
news/pf_strings.rst
Normal file
|
@ -0,0 +1,34 @@
|
|||
**Added:**
|
||||
|
||||
* New xonsh syntax ``pf`` strings -- combining path strings with f-strings.
|
||||
|
||||
Usage:
|
||||
|
||||
.. code-block:: bash
|
||||
gil@bad_cat ~ $ repos = 'github.com'
|
||||
gil@bad_cat ~ $ pf"~/{repos}"
|
||||
PosixPath('/home/gil/github.com')
|
||||
gil@bad_cat ~ $ pf"{$HOME}"
|
||||
PosixPath('/home/gil')
|
||||
gil@bad_cat ~ $ pf"/home/${'US' + 'ER'}"
|
||||
PosixPath('/home/gil')
|
||||
|
||||
**Changed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Deprecated:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Removed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Fixed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Security:**
|
||||
|
||||
* <news item>
|
Loading…
Add table
Reference in a new issue