code-puppy 0.0.191__py3-none-any.whl → 0.0.192__py3-none-any.whl

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.
@@ -14,6 +14,7 @@ from prompt_toolkit import PromptSession
14
14
  from prompt_toolkit.completion import Completer, Completion, merge_completers
15
15
  from prompt_toolkit.formatted_text import FormattedText
16
16
  from prompt_toolkit.history import FileHistory
17
+ from prompt_toolkit.filters import is_searching
17
18
  from prompt_toolkit.key_binding import KeyBindings
18
19
  from prompt_toolkit.keys import Keys
19
20
  from prompt_toolkit.styles import Style
@@ -207,12 +208,9 @@ async def get_input_with_combined_completion(
207
208
  event.app.current_buffer.insert_text("\n")
208
209
 
209
210
  # Override the default enter behavior to check for shift
210
- @bindings.add("enter")
211
+ @bindings.add("enter", filter=~is_searching)
211
212
  def _(event):
212
- """Accept input or insert newline depending on shift key."""
213
- # Check if shift is pressed - this comes from key press event data
214
- # Using a key sequence like Alt+Enter is more reliable than detecting shift
215
- # So we'll use the default behavior for Enter
213
+ """Accept input only when we're not in an interactive search buffer."""
216
214
  event.current_buffer.validate_and_handle()
217
215
 
218
216
  @bindings.add(Keys.Escape)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: code-puppy
3
- Version: 0.0.191
3
+ Version: 0.0.192
4
4
  Summary: Code generation agent
5
5
  Project-URL: repository, https://github.com/mpfaffenberger/code_puppy
6
6
  Project-URL: HomePage, https://github.com/mpfaffenberger/code_puppy
@@ -34,7 +34,7 @@ code_puppy/command_line/file_path_completion.py,sha256=gw8NpIxa6GOpczUJRyh7VNZwo
34
34
  code_puppy/command_line/load_context_completion.py,sha256=6eZxV6Bs-EFwZjN93V8ZDZUC-6RaWxvtZk-04Wtikyw,2240
35
35
  code_puppy/command_line/model_picker_completion.py,sha256=vYNCZS1QWu6fxF__hTwpc7jwH7h_48wUxrnITawc83E,4140
36
36
  code_puppy/command_line/motd.py,sha256=PEdkp3ZnydVfvd7mNJylm8YyFNUKg9jmY6uwkA1em8c,2152
37
- code_puppy/command_line/prompt_toolkit_completion.py,sha256=O-wTYIGb9J_ONEBa-bWNFeQLnqC6LIFKsKQ7hjMbssM,9992
37
+ code_puppy/command_line/prompt_toolkit_completion.py,sha256=NbagxHj950ADRncqXuVM8gAwqdrfKeGfC0x6-IhrsXM,9860
38
38
  code_puppy/command_line/utils.py,sha256=7eyxDHjPjPB9wGDJQQcXV_zOsGdYsFgI0SGCetVmTqE,1251
39
39
  code_puppy/command_line/mcp/__init__.py,sha256=0-OQuwjq_pLiTVJ1_NrirVwdRerghyKs_MTZkwPC7YY,315
40
40
  code_puppy/command_line/mcp/add_command.py,sha256=lZ09RpFDIeghX1zhc2YIAqBASs5Ra52x5YAasUKvqJg,6409
@@ -120,9 +120,9 @@ code_puppy/tui/screens/help.py,sha256=eJuPaOOCp7ZSUlecearqsuX6caxWv7NQszUh0tZJjB
120
120
  code_puppy/tui/screens/mcp_install_wizard.py,sha256=vObpQwLbXjQsxmSg-WCasoev1usEi0pollKnL0SHu9U,27693
121
121
  code_puppy/tui/screens/settings.py,sha256=-WLldnKyWVKUYVPJcfOn1UU6eP9t8lLPUAVI317SOOM,10685
122
122
  code_puppy/tui/screens/tools.py,sha256=3pr2Xkpa9Js6Yhf1A3_wQVRzFOui-KDB82LwrsdBtyk,1715
123
- code_puppy-0.0.191.data/data/code_puppy/models.json,sha256=dClUciCo2RlVDs0ZAQCIur8MOavZUEAXHEecn0uPa-4,1629
124
- code_puppy-0.0.191.dist-info/METADATA,sha256=Tk8UMxoXnKcEso7vL2NfjYkIbPWJBxPVVdZNIjgjNIM,19985
125
- code_puppy-0.0.191.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
126
- code_puppy-0.0.191.dist-info/entry_points.txt,sha256=Tp4eQC99WY3HOKd3sdvb22vZODRq0XkZVNpXOag_KdI,91
127
- code_puppy-0.0.191.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
128
- code_puppy-0.0.191.dist-info/RECORD,,
123
+ code_puppy-0.0.192.data/data/code_puppy/models.json,sha256=dClUciCo2RlVDs0ZAQCIur8MOavZUEAXHEecn0uPa-4,1629
124
+ code_puppy-0.0.192.dist-info/METADATA,sha256=tMiyhp7pbUGTxoltFcDm7oBTgEBXsaN2d9dJ9zeYPLI,19985
125
+ code_puppy-0.0.192.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
126
+ code_puppy-0.0.192.dist-info/entry_points.txt,sha256=Tp4eQC99WY3HOKd3sdvb22vZODRq0XkZVNpXOag_KdI,91
127
+ code_puppy-0.0.192.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
128
+ code_puppy-0.0.192.dist-info/RECORD,,