-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Displaying the executed command might cause hit-Enter prompt #166
Comments
I think your workaround is the way to go: Truncate |
Given the fix for radenling/vim-dispatch-neovim#4 I could imagine that it's a similar thing, where some commands fail with "not allowed here" or something similar, and could be replaced maybe? btw: the "Success:" message simply does not get displayed if the window is too small - instead of the hit-enter prompt?! ( vim-dispatch/autoload/dispatch.vim Line 808 in 83e68d9
After all, this should happen with |
It works for displaying the cmd also when
|
A shorter/simpler approach would be to just call But still: it would be better to find a way to trigger Vim's auto-truncation (in the middle of the string). |
What constitutes "middle", even? |
The middle of the string..?! I agree that it's better to have control over this as with my PR. |
Hey, how can I get rid of this 'Hit ENTER' prompt? |
Can somebody tell what the status of this issue? |
Is the |
@tpope |
I would very much love to see this feature implemented. Sometimes you just cannot avoid long call strings. |
I'm open to a "good enough" solution if someone wants to craft a PR. |
Isn't #167 the way to go? |
Needs conflict resolution but yeah, that certainly qualifies as "good enough". |
I have that exact PR merged into my local fork which is 6 months old. It also includes fixes for another case in the same Copy&Paste DNA. Will review and post it soon. |
Rebased it. |
I've started using this but apparently cannot get (or didn't understand) the expected result. Consider the following minimal set nocompatible
let $DOTVIM = expand('$HOME/.config/nvim')
set runtimepath+=$DOTVIM/bundle/repos/github.com/tpope/vim-dispatch
filetype plugin indent on Now, as in the GIF, open nvim in a small window (~60 columns) and do:
|
@petobens |
Oh I didn't look too closely. The success message is way more important to truncate than the start message because that one interrupts what you are doing. |
Ok - I've thought this should be kept verbatim, since it is available in |
Truncating the success message was what lead to resurrecting this issue; I didn't occur to me that the PR only truncates the start message. |
I think we should probably stop using |
It could still use |
Nah :echo is fine, truncated message would be a bit weird.
…On Fri, Jul 26, 2019 at 16:26 Daniel Hahler ***@***.***> wrote:
It could still use :echom there (with the truncated message).
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#166?email_source=notifications&email_token=AAAAC6XXHYC67QJ2K7XSETLQBNMYXA5CNFSM4B7B6772YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD25UEJQ#issuecomment-515588646>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAAC6UMBYMYOVDSACVMADLQBNMYXANCNFSM4B7B677Q>
.
|
Looked into this now: it does not use
Do you mean truncated messages are weird in the history, or that they should not be truncated in general? Note that without |
I mean truncated messages are weird in history. When Vim does it, it puts the full message in history, even if it displays a truncation, but I don't think there's any way we can do the same. The purpose of the message is to alert you when the job is done. Its historical value is extremely low, so I say switch from |
Just popping in to say I find |
Building from my "truncated messages are weird in history" premise, I'm not going to add a "put a weird message in my history" option. Find a way to fix that problem and we can talk, or even better, please investigate putting into the quickfix title, after the |
I think 250ea26 resolves this. |
The code at
vim-dispatch/autoload/dispatch.vim
Lines 218 to 219 in eb3e564
This causes issues, e.g. radenling/vim-dispatch-neovim#4.
But even after fixing this, it seems like there's an issue where the tempfile from vim-dispatch-neovim only contains 10 empty lines, probably because the terminal window is still considered to be empty at that point (because of the hit-enter).
What do you think about only doing this
echo
if&verbose
is > 0?Is there some other way to handle this better?
As a workaround I could imagine cropping the line to something that fits into
cmdheight
, but that then seems to be more an issue to tackle at the core / vim./cc @radenling
The text was updated successfully, but these errors were encountered: