Commit Graph

1379 Commits

Author SHA1 Message Date
3a5d946938 Increase Ollama context window and override gptel--request-data
Added a custom variable `gptel-ollama-context-window` to specify the number of characters for Ollama requests and overridden the `gptel--request-data` method to include this context window in the request data.
2024-08-19 12:01:56 -04:00
d2b7817dc1 Add optional region support to aimenu
This change modifies the function aimenu-get-buffer-with-line-numbers to accept optional start and end arguments, allowing it to add line numbers to a specified region instead of the entire buffer. Additionally, it adjusts usage in aimenu-show-outline to handle active region if present.
2024-08-15 00:04:09 -04:00
e2580c7abe Fix aimenu use-package declaration 2024-08-13 23:30:12 -04:00
555d78eadc Set unique-buffer-name-style 2024-08-13 20:15:07 -04:00
4d022e32d2 Refine commit message prompt to be more specific
Updated the prompt text to include "Be specific" to improve clarity and detail in generated commit messages.
2024-08-12 16:31:54 -04:00
6b4430b854 Optimize Emacs startup and UI settings
Streamlined startup by optimizing garbage collection, UI elements, and performance settings. Moved redundant configurations from init.el to early-init.el for better startup efficiency. Made adjustments to init-ui.el for better tool-bar handling post-init.
2024-08-12 16:31:11 -04:00
f32fbd670b Add optional instruction input for custom outlines
Modified aimenu function to accept an optional instruction argument, allowing users to provide specific instructions for generating the outline. Updated related logic to handle the new argument and adjusted the system message accordingly.
2024-08-12 12:34:36 -04:00
73897be017 Use gpt-4o-mini for aimenu 2024-08-12 11:49:00 -04:00
862c55dfdc Require gptel 2024-08-12 11:48:53 -04:00
76bea3d41a Add keybinding for gptel-quick to ai-map 2024-08-12 11:39:07 -04:00
71861b026a Add aimenu for AI-powered imenu outlines
This commit introduces aimenu, a new package that generates imenu-like outlines using a language model. The new package includes functions for generating and handling outlines, managing cache, and interacting with the user to select headers.
2024-08-12 11:38:59 -04:00
c622de4d80 Add gemma2:2b model option 2024-08-10 22:58:47 -04:00
7c9f4475ce Add swift config 2024-08-10 22:58:17 -04:00
4b7e74afa5 Don't use first person in system prompt 2024-08-07 13:10:54 -04:00
5b0cab188e Move backend selection into interactive call 2024-08-07 13:09:13 -04:00
cc12ad22b4 Expand gptel-directive for org-mode with more guidelines
Updated the gptel-directive for org-mode to provide detailed instructions on how to return Emacs Lisp, Python, and shell-script code blocks. Additionally, included several examples to illustrate the expected code block format and evaluation criteria.
2024-08-07 13:01:35 -04:00
6f353f7e45 Load init-navigation later 2024-08-06 11:59:32 -04:00
5873205a25 Enable Markdown export from org-mode 2024-08-06 11:59:16 -04:00
f4ff08e0ba Add keybinding setup for ace-link in eww mode
Configured ace-link keybinding for eww mode to ensure it works correctly by defining it within a setup function and adding a hook for eww-mode.
2024-08-06 11:59:05 -04:00
82bd3725a2 Generate PR diffs properly 2024-08-06 11:58:50 -04:00
f0a47640e5 Open AWS console links in default browser 2024-08-06 11:58:23 -04:00
2f02bc6e1b Add new directives for code review and prompt generation
This commit introduces two new directives into the gptel configuration: one for code review and another for prompt generation. The code review directive provides guidelines for giving feedback on code snippets, while the prompt generation directive outlines steps for creating effective prompts.
2024-08-05 10:03:30 -04:00
c0f2631b00 Add directive for stable diffusion prompt generation
This change adds a new directive to the gptel configuration for creating detailed prompts for stable diffusion image generators. The directive specifies how to translate a simple natural language description into a more detailed and descriptive prompt to ensure high-quality image generation.
2024-07-25 21:31:47 -04:00
38db89e9be Open ComfyUI in default browser 2024-07-25 21:31:24 -04:00
8f6b50d84e Remove llama configuration from init-ai.el 2024-07-25 21:10:26 -04:00
a47f4e537d Add gptel-chat-with-buffer function and keybinding
This commit introduces the gptel-chat-with-buffer function, allowing users to start a chat with the buffer content. It also updates keybindings, assigning "b" to the new function and moving gptel-select-backend to "B".
2024-07-25 21:10:14 -04:00
e63466ca1f Extract org-mode LLM directive into variable 2024-07-25 16:22:18 -04:00
27faface1b Add ob-async 2024-07-25 16:22:10 -04:00
71d26e5e05 Add imenu for eww
Add support for Imenu integration to EWW mode by defining a custom index function that uses HTML headings from the current buffer as menu items, and then add this hook to eww-mode-hook so that it can be triggered automatically when eww buffers are opened. This change includes code borrowed from 3b46f9c0e0
2024-07-25 16:15:31 -04:00
a00ecb3fc0 Enable shell source code blocks in Org-mode Babel 2024-07-25 00:28:07 -04:00
ccf97514f6 Update gptel--system-message for automatic code evaluation
Removed the need for confirmation before evaluating code in Org-Mode source blocks, allowing automatic execution.
2024-07-25 00:27:56 -04:00
ed63a1ea0f Add gptel-org function
Implemented a gptel-org function to allow interacting with GPTel within an Org-Mode buffer, setting the appropriate system message for context. Updated init-org.el to load Emacs-Lisp and Python Babel languages and disabled org-confirm-babel-evaluate for smoother code execution.
2024-07-25 00:10:48 -04:00
a7b98cad02 Add keybinding for gptel-abort 2024-07-24 16:19:58 -04:00
8d7dec78f5 Add shell command directive to gptel configuration
This change introduces a new directive for generating shell commands to the gptel configuration. The directive specifies that the response should be plain text with no additional description or formatting.
2024-07-24 16:09:16 -04:00
0adc712d2f Update ollama models
Changed the model names from "llama3:latest" and "mistral:latest" to "llama3.1:latest" and "mistral-nemo:latest" respectively in the GPTel Ollama backend configuration.
2024-07-24 16:00:22 -04:00
28da68fcd1 Prevent SVG rendering in EWW buffer
Added functionality to ignore SVG files during rendering in EWW to address rendering issues associated with SVGs.
2024-07-24 16:00:10 -04:00
a37891f4fc Configure webjump 2024-07-24 14:21:08 -04:00
906560dae0 Add key binding for generating git commit messages 2024-07-24 13:01:19 -04:00
0973393714 Add vterm AWS profile switch command and keybinding
Added a new function `vterm-aws-switch-profile` to switch AWS profiles in the current vterm buffer and associated it with the keybinding `C-c a` for quick access. This facilitates easier management of AWS profiles within vterm sessions.
2024-07-24 12:08:14 -04:00
8ad4c70070 Add bookmark support and keybindings to EWW in Emacs
This commit adds the ability to access EWW bookmarks. It modifies the init-eww.el configuration file by introducing a function to visit bookmarks and updating the keybindings to include commands for accessing and listing bookmarks.
2024-07-24 11:41:07 -04:00
4a7ccb378d Only load embark target finder for forge in Magit buffers 2024-07-24 11:26:17 -04:00
05d94e2646 Refines commit message prompt directive
Updated the guidelines for generating commit messages to avoid using the word 'enhance' and user experience references, and request plain text responses without syntax.
2024-07-24 10:42:04 -04:00
77138e6dc9 Handle AWS SSO login buffer cleanup
Added process sentinel to close the *aws-sso-login* buffer when the AWS SSO login process finishes
2024-07-24 10:40:08 -04:00
f9b49ef7b6 Autoload gptel-request 2024-07-24 10:28:22 -04:00
3141955f9c Add language detection to YAML scalar editing
Integrated language-detection to automatically detect and set major modes based on buffer/string content. Enhanced YAML editing with language detection for buffer initialization.
2024-07-24 10:26:33 -04:00
d60fa4e873 Move eww init to its own file and add syntax highlighting to pre tags 2024-07-24 00:25:57 -04:00
ef62f0c172 Set up evil-collection keybindings for ibuffer 2024-07-23 16:40:46 -04:00
a4f90da304 Add consult-line binding to embark-general-map
Added the "/" key binding in embark-general-map to trigger consult-line, enhancing quick line searching functionality.
2024-07-23 13:18:30 -04:00
454ffb7d33 Add EWW functions for URL handling and buffer renaming
This commit introduces three new custom functions for EWW: `eww-rename-buffer-to-title` for renaming buffers based on page titles, `eww-capture-urls-on-page` to capture all links on the current page, `eww-visit-url-on-page` to select and visit links using completion, and `eww-jump-to-url-on-page` to jump to URLs on the page. These enhancements improve the usability and navigation of EWW.
2024-07-23 13:18:09 -04:00
f3353bb124 Add eww configuration and custom URL prompt function
This commit adds configuration for the built-in `eww` web browser in Emacs. It introduces a custom prompting function that suggests URLs or keywords based on the browsing history, current URL, and other suggestions, enhancing the user experience. Additionally, a key binding for the `eww` function is added in `eww-mode-map`.
2024-07-23 11:00:57 -04:00