Skip to content

missing doco for command_prefix #293

@ErichBSchulz

Description

@ErichBSchulz

we have an new feature (thanks Dustin!)

It needs documentation in ?? in the vannilla config file? (this may be one of many new settings in this category??)

erich@erich-nuc:~/cecli$ rg command_prefix . -C 10
./aider/coders/base_coder.py
3887-
3888-        If the command prefix contains a {} placeholder, replace it with the command.
3889-        Otherwise, append the command to the prefix with a space.
3890-
3891-        Args:
3892-            command (str): The command to format
3893-
3894-        Returns:
3895-            str: The formatted command
3896-        """
3897:        command_prefix = None
3898-
3899:        if command and getattr(self.args, "command_prefix", None):
3900:            command_prefix = getattr(self.args, "command_prefix", None)
3901-
3902:        if not command_prefix:
3903-            return command
3904-
3905-        # Check if the prefix contains a {} placeholder
3906:        if "{}" in command_prefix:
3907-            # Replace the {} placeholder with the command
3908:            return command_prefix.replace("{}", command)
3909-        else:
3910-            # Append the command to the prefix with a space
3911:            return f"{command_prefix} {command}"

./aider/commands.py
2297-        """Return currently loaded skill names for completion"""
2298-        if not hasattr(self.coder, "skills_manager") or self.coder.skills_manager is None:
2299-            return []
2300-
2301-        try:
2302-            skills = self.coder.skills_manager.find_skills()
2303-            return [skill.name for skill in skills]
2304-        except Exception:
2305-            return []
2306-
2307:    def cmd_command_prefix(self, args=""):
2308-        """Change Command Prefix For All Running Commands"""
2309-        if not args.strip():
2310:            setattr(self.coder.args, "command_prefix", "")
2311-
2312:        setattr(self.coder.args, "command_prefix", args.strip())
2313-
2314-    def cmd_copy_context(self, args=None):
2315-        """Copy the current chat context as markdown, suitable to paste into a web UI"""
2316-
2317-        chunks = self.coder.format_chat_chunks()
2318-
2319-        markdown = ""
2320-
2321-        # Only include specified chunks in order
2322-        for messages in [chunks.repo, chunks.readonly_files, chunks.chat_files]:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions