We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6528acc commit 6564d20Copy full SHA for 6564d20
1 file changed
xontrib/pipeliner/__init__.py
@@ -10,7 +10,8 @@
10
11
_default_presets = {
12
"strip": "line.strip()",
13
- "split": lambda args: f"line.split({repr(args[0])})"
+ "split": lambda args: f"line.split({repr(args[0])})",
14
+ "list": lambda args: f"eval(line)[int({repr(args[0])})]",
15
}
16
17
def _pl(args, stdin, stdout):
0 commit comments