ali-tool 0.2.2__tar.gz → 0.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ali-tool
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Action Language Interpreter - One command for every tool
5
5
  Author: Fredrik Angelsen
6
6
  Author-email: Fredrik Angelsen <fredrikangelsen@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ali-tool"
3
- version = "0.2.2"
3
+ version = "0.2.3"
4
4
  description = "Action Language Interpreter - One command for every tool"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Fredrik Angelsen", email = "fredrikangelsen@gmail.com" }]
@@ -132,7 +132,7 @@ def main():
132
132
  if plugin.name == args.init:
133
133
  sys.exit(plugin.init())
134
134
  except Exception as e:
135
- if plugin.name == args.init:
135
+ if yaml_path.parent.name == args.init:
136
136
  print(f"Error loading plugin '{args.init}': {e}", file=sys.stderr)
137
137
  sys.exit(EXIT_ERROR)
138
138
  all_plugins = [p.parent.name for p in plugins_dir.glob("*/plugin.yaml")]
@@ -66,7 +66,7 @@ grammar:
66
66
  description: "Any text, pane reference, or stream selector"
67
67
  # Vocabulary
68
68
  vocabulary:
69
- verbs: [GO, KILL, SPLIT, CREATE, WIDTH, HEIGHT, JOIN, SWAP, COPY, ECHO, LAYOUT, TERMTAP]
69
+ verbs: [GO, KILL, SPLIT, CREATE, WIDTH, HEIGHT, JOIN, SWAP, COPY, ECHO, LAYOUT, TERMTAP, LAZYGIT, PWD]
70
70
  # Expectations
71
71
  expectations:
72
72
  GO: [target]
@@ -81,6 +81,8 @@ expectations:
81
81
  ECHO: [stream, "target?"]
82
82
  LAYOUT: ["stream?"]
83
83
  TERMTAP: []
84
+ LAZYGIT: []
85
+ PWD: []
84
86
  # Inference
85
87
  inference:
86
88
  - when: {verb: GO, target: "?"}
@@ -118,7 +120,7 @@ commands:
118
120
  - match: {verb: SWAP, source: present}
119
121
  exec: "{swap} -s {source}{?dest: -t {dest}}"
120
122
  - match: {verb: COPY, stream_exec: present}
121
- exec: "{modal_popup} '{stream_exec} | tmux load-buffer -w'"
123
+ exec: "{modal_popup} '{stream_exec} | clip'"
122
124
  - match: {verb: ECHO, stream_exec: present}
123
125
  exec: "{modal_popup} '{stream_exec} | tmux load-buffer -b ali-echo - && tmux paste-buffer -b ali-echo{?target: -t {target}} && tmux delete-buffer -b ali-echo'"
124
126
  - match: {verb: LAYOUT, stream: present}
@@ -127,6 +129,10 @@ commands:
127
129
  exec: "tmux display-popup -E -w 50% -h 50% trelayout"
128
130
  - match: {verb: TERMTAP}
129
131
  exec: "tmux display-popup -E -w 80% -h 60% 'termtap companion --popup'"
132
+ - match: {verb: LAZYGIT}
133
+ exec: "{modal_popup} 'lazygit'"
134
+ - match: {verb: PWD}
135
+ exec: "printf '%s' \"$PWD\" | clip"
130
136
  # Selectors
131
137
  selectors:
132
138
  .?:
File without changes