From 86b5c0fcc57af2e49871c34829004a150dc499c4 Mon Sep 17 00:00:00 2001 From: Gil Forsyth Date: Tue, 25 Dec 2018 17:38:08 -0500 Subject: [PATCH] Add news entry --- news/pf_strings.rst | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 news/pf_strings.rst diff --git a/news/pf_strings.rst b/news/pf_strings.rst new file mode 100644 index 000000000..d7871fe3c --- /dev/null +++ b/news/pf_strings.rst @@ -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:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +*