Minor environment changes
-
Python
- Code refactoring for better code management and efficiency: moved main
logic in
litrepl
frompython/bin/litrepl
to a new file python/litrepl/main.py. - Improved handling of subprocess management for the Python and AI
interpreters, ensuring proper cleanup and output management. Additionally,
calls to
os.system
were mostly replaced with native Python calls. - Added robust error handling and message retrieval for the interpreter interface, providing clearer errors when the interpreter fails.
- Code refactoring for better code management and efficiency: moved main
logic in
-
Vim
- Introduced the default environment variable check for
LITREPL_WORKDIR
,LITREPL_PYTHON_AUXDIR
,LITREPL_AI_AUXDIR
etc. environment variables. - Updated Vim functions to consider both buffer and global settings,
improving flexibility in command generation (
LitReplGet
helper function). - Updated commands related to AI tasks like
:LAIStyle
,:LAIFile
, and:LAICode
to handle rephrasing and AI interaction more efficiently. - Adjusted internal Vim functions to handle text width settings and cursor positionings.
- Introduced the default environment variable check for
-
Environment
- Replaced
test.sh
with runtests.sh in the build and test process for enhanced test execution flow. - Allowed more environment configuration by introducing more settings that default from environment variables, streamlining setup customization.
- Updated Nix build script (default.nix) to reflect changes in the test script location and hash updates for source verification.
- Added this changelog and the AI-powered changelog helper script diffchanges.sh.
- Replaced
-
Python
- Added assertions to ensure a successful attachment to the interpreter, enhancing error handling robustness.
-
Vim
- Enhanced vim/plugin/litrepl.vim by preserving caret positions and restructuring comments for function alignment.
- Significant expansions in
vim/plugin/litrepl_extras.vim with
multiple new functions for region handling, AI task management, and
interaction across different scopes, substantially improving user
experience with AI functionalities in Vim. Several new commands such as
LAITell
,LAICont
,LAIStyle
,LAIFile
, andLAICode
are introduced to support a wide range of code and AI-related tasks.
-
Environment
- Added a new markdown file
./doc/screencast.md
with examples for evaluating Python code in Vim, offering insights into the screencast documentation process. - Adjusted
screencast.sh
to be executable and made improvements to accommodate a target file parameter. - Introduced a new test function
test_vim_ai_query
intest.sh
, facilitating new test coverage for AI query functionality.
- Added a new markdown file