_unfinished
Return why plain text appended to template would not stay literal.
Source and package
- Qualified name
-
libtmux.formats. _unfinished - Module
- libtmux.formats
- Package
- libtmux
- Source
- src/libtmux/formats.py
-
Description
Text is literal only where tmux reads text: not after a trailing
#, which combines with the next character, not inside an unclosed#{...},#(...)or#[...], and not after an unfinished%time field.Examples
>>> _unfinished("#{session_name}-") is NoneTrue>>> _unfinished("#{session_name}#")'it ends with #'>>> _unfinished("##")'it ends with #'>>> _unfinished("#{?pane_active,")'it ends inside #{...}'>>> _unfinished("#(echo ")'it ends inside #(...)'>>> _unfinished("Progress: 100%")'it ends inside a % time field'
Recorded calls
source callsThe Python reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls libtmux.formats._unfinished.