Open
Conversation
I dedicate any and all copyright interest in this software to the public domain. I make this dedication for the benefit of the public at large and to the detriment of my heirs and successors. I intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
This is required for e.g Python 3.13's _pyrepl pasting to work properly, otherwise it indents the next line which doesn't work with Python.
0fad8da to
8f834cc
Compare
This is most useful for e.g. Python code, where you might have something
like
```python
def function_under_test():
if foo:
print(bar)
```
so you do something like selecting the `if` and `print` lines
`/if<ret>]fx` (lsp plugin select to end of function), and then convert
it to block selection using `S^ {,4}` (for 4 space indent) then it will
send the dedented lines to the repl.
Not adding an option for this as the old way of only sending the main
selection can be done using `,: tmux-send-repl<ret><a-u>`.
8f834cc to
40f7ffb
Compare
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.
Hi!
I have made some tweaks to the rc/repl/tmux file which might be useful for others so I thought I'd contribute back :)
Summary
tmux-send-replsends all selections -- this is to support stripping indent, very useful for Python. No option as the old behaviour can be achieved by,: tmux-send-repl<ret><a-u>.The latter comes with a question which I should probably remove from the commit message and ask somewhere better... Since I'm here I'll put it here but just ignore and I'll create an account and move to discuss when I can remember