mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
refactor: Remove unused file_editor function from editor module
This commit is contained in:
parent
cd81c2619b
commit
a43772b21d
1 changed files with 0 additions and 15 deletions
|
@ -112,21 +112,6 @@ def discover_editor(editor_override=None):
|
||||||
raise RuntimeError(f"Invalid editor command format '{editor}': {e}")
|
raise RuntimeError(f"Invalid editor command format '{editor}': {e}")
|
||||||
|
|
||||||
|
|
||||||
def file_editor(filepath):
|
|
||||||
"""
|
|
||||||
Open the specified file in the system's configured editor.
|
|
||||||
|
|
||||||
This function blocks until the editor is closed.
|
|
||||||
|
|
||||||
:param filepath: Path to the file to edit
|
|
||||||
:type filepath: str
|
|
||||||
:raises RuntimeError: If the editor command is invalid
|
|
||||||
"""
|
|
||||||
command_parts = discover_editor()
|
|
||||||
command_parts.append(filepath)
|
|
||||||
subprocess.call(command_parts)
|
|
||||||
|
|
||||||
|
|
||||||
def pipe_editor(input_data="", suffix=None, editor=None):
|
def pipe_editor(input_data="", suffix=None, editor=None):
|
||||||
"""
|
"""
|
||||||
Opens the system editor with optional input data and returns the edited content.
|
Opens the system editor with optional input data and returns the edited content.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue