Open
Conversation
- Introduced a new terminal management module in `snacksterm.lua`. - Refactored `git_stash_finder` to be a local function. - Enhanced terminal handling with methods for opening, clearing, and sending commands to the terminal. - Updated terminal initialization to support Aider sessions.
- Introduced a new `T.get` function to manage terminal creation. - Updated `T.terminal` to utilize the new `T.get` function. - Improved window toggle logic for better terminal management.
The 'style' property has been removed from the window configuration in the snacksterm module. This change simplifies the window setup and ensures a more consistent user experience.
Updated class names from AiderTerminal to AiderSnacks and AiderToggleterm for better clarity and consistency. This change improves code readability and aligns with the new naming conventions.
- Refactor `T.get` to accept an optional `cwd` parameter. - Update `T.terminal` to correctly manage terminal instances based on the current working directory. - Improve documentation for `__terms` field in AiderSnacks.
- Added function to get buffer IDs of split windows. - Enhanced terminal creation with options for cwd and position. - Updated terminal error handling to use a consistent notify method. - Refactored terminal spawning and toggling logic. - Improved file path handling in the add function.
- Changed the method of obtaining the current working directory from `utils.repo_root()` to `Snacks.git.get_root(vim.uv.cwd())`. - Updated the file path conversion to use `vim.fn.fnamemodify` for better compatibility with Neovim's file handling.
- Added a new function `get_root()` to simplify root path retrieval. - Updated `T.get()` to use `get_root()` for better clarity. - Modified `T.terminal()` to accept options and improve flexibility. - Introduced `directions_mapping` for window positioning. - Adjusted theme colors in `tokyonight.lua` for better visibility.
Added error handling for terminal creation in the send_command function. If the terminal fails to initialize, a notification is displayed to the user.
- Added support for specifying terminal position in options. - Refactored terminal retrieval to use a local variable for position. - Cleaned up commented code related to terminal style.
Updated the default position option in the get function from "right" to "float" to improve user experience and flexibility in terminal positioning.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.