Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anki-code authored Feb 14, 2024
1 parent 6528acc commit 6564d20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xontrib/pipeliner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

_default_presets = {
"strip": "line.strip()",
"split": lambda args: f"line.split({repr(args[0])})"
"split": lambda args: f"line.split({repr(args[0])})",
"list": lambda args: f"eval(line)[int({repr(args[0])})]",
}

def _pl(args, stdin, stdout):
Expand Down

0 comments on commit 6564d20

Please sign in to comment.