Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add editor command (and make it the default when no args provided) #637

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oeo
Copy link

@oeo oeo commented Nov 18, 2024

Adds an interactive editor mode to the LLM CLI:

I noticed llm was just hanging without any args and had a personal tool that allowed me to open my system default editor and sort of draft a more complex prompt and thought the feature was useful.

  • New llm editor command to compose prompts in a system editor
  • Default behavior now opens an editor when no arguments are provided
  • Supports specifying custom editor with -e/--editor flag

Usage

# Open default editor
llm
llm editor

# Open with specific editor
llm editor -e vim
image image

@oeo oeo changed the title Add editor command and make it the default when no args provided Add editor command (and make it the default when no args provided) Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant