feat: add direct text input and startup support to Pantran command#32
Open
rozhelluk wants to merge 4 commits intopotamides:mainfrom
Open
feat: add direct text input and startup support to Pantran command#32rozhelluk wants to merge 4 commits intopotamides:mainfrom
rozhelluk wants to merge 4 commits intopotamides:mainfrom
Conversation
Fixes E5108 error when erow exceeds buffer line count by adding bounds checking before accessing line content.
…ange error Clamp row/col values to buffer bounds in _coords2marks before calling nvim_buf_set_extmark to fix E5108 invalid line errors.
Enable passing text directly to Pantran command instead of only translating buffer content. Args without key=value are treated as text.
Document new features: passing text directly to :Pantran command and using it with nvim startup for quick translations.
Contributor
Author
|
Now you can use some pretty cool things, such as: This is how I use it in my Hyprland: |
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.
Fixed two E5108 errors:
Works with startup: nvim +Pantran opens translation window immediately.
Added direct text input support: