-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Opening a network file on windows #6778
Comments
Pasting the path usually works fine for me. You could open the file using it as an argument |
Thanks for your time.
What key combination do you use to paste? I can't even seem to paste in insert mode. What I'm trying (for insert mode):
All that happens is it seems to go into some kind of literal mode (like how on *nix one can insert a linebreak with I expect if I can get paste to work in insert mode then perhaps I can figure out how to paste into
I'm launch directly from |
Hmm, neither |
I don't know if these messages from
|
Here's a log from when I try to drag the network file into the window:
|
It's Space p / P to paste from the system clipboard. If you're searching for commands I'd recommend using Space ? or looking for it in the docs. Also, on Windows you could set up file types to always open in helix (it's requires some workaround if you want to run it in a terminal emulator, though). |
Ah, thanks -- I now remember learning that in the tutorial. But that's from command mode, right? I had expected Wow, space? is great, thank you! |
Ctrl V works depending on the terminal emulator and configuration you're using. Some use Ctrl Shift V by default, others mouse right or middle click. (Not sure if helix does some things that interfere with this, too.). You are saying you're using helix without an additional terminal emulator, so it's Windows' default console? In that case you could enable the option to use Ctrl Shift C/V in the console settings (right click the title bar and open There's also an But be aware that this style of pasting will interpret each character separately as if typed by hand. So you can run into issues where you get additional indentations, parantheses, etc. when pasting somewhere in the buffer, so I'd recommend to stick with |
Yes, as I mentioned in OP:
(with
I have no idea; nvim uses (or at least can use) Qt for its standalone GUI, I don't know how this works under the covers. From releases, the x86 Windows .zip file has a
Well that worked for enabling
I just timed it, it's actually around 13 seconds per character. |
The log (while it's taking 13 seconds per character to paste) aren't very interesting:
Again, if I take the same approach but paste in a path to e.g. It's on the clipboard as a string, I don't understand why pasting a string would take so long if the string refers to a network share. |
The windows console does not support bracketed paste I am pretty sure, windows terminal does those so you can use that or another terminal emulator. If are using the regular windows console you will want to use the built in paste commands, you can make a custom keybind in insert mode for it if you would like and it should work. |
@gabydd Thanks for your input -- again, I'm just using |
Also, I'm fairly curious as to why the behavior is so different for pasting a string that refers to a local file vs a string that refers to a network file. |
I assume this issue can be closed then? |
I don't think so -- nothing has changed, and I am still unable to open the file. Is there anyone else running Windows with a network share available that can try to reproduce? It's a pretty simple test procedure:
|
This works, but seems like a lot of effort to open a file from the GUI:
In contrast, in neovim:
I don't think the latter of those can work in helix as there is no clipboard register, but either implementing the first or figuring out why pasting the path into the command bar takes several minutes to completely (seriously, ~13 seconds per character) would be really nice. I tried to compile from source yesterday to see if I could help debug, but this device doesn't have gcc, and unfortunately I don't have admin privileges. |
Confirming this only happens for network files:
So the quotes don't seem to be a problem, just the leading |
Ok the issue is the following:
So there is nothing we can do here. Helix is a TUI application so we are at the mercy of the terminal emulator. If you want to use bracketet paste you need to start helix from a terminal emulator that support it (for example alacrity). This is simply how TUI applications work. They are not intended to be "double clicked". |
@pascalkuthe thanks for the explanation -- clearly (edit: I need) to read more about bracketed paste. The If the bracketed paste issues are truly the problem, would it make sense that they work fine on non-network share paths? |
Also, to be clear, I can use shift-ctrl-v to paste I see the same behavior when I launch helix from Powershell or cmd.exe -- trying to paste in Does this still sound like a window bracketing issue?
Sorry, I'm just not very familiar with Windows, and I didn't recognize that this was just opening up a terminal emulator. I'm a heavy Linux server user and most of my machines are headless and managed exclusively over SSH, I'm at least a little familiar with TUIs, just no idea what I'm doing on Windows. I don't mean to pester, and I am grateful for the project and for the time spent in responding to me so far. I'm attaching two videos of the behavior. (I'm sorry that the text is so small it's difficult to see, you may need to expand to full screen. The built-in Windows screen recording app doesn't seem very fully featured.) In both of these videos, I exclusively use shiftctrlv to paste (did not use spacep at all). In the first, output2.mp4In the second, you can see that output1.mp4I'll continue to investigate, and if I find a solution I'll tag a maintainer to request re-opening. In the meantime hopefully this issue will be helpful to other windows network-share users. |
This still happens on 23.10, it is cripplingly slow to try to open a file on the network share. In particular, when pasting / dragging in a file, filling in the filepath (after I'm still not sure that this is due to bracketed paste issues, though I could be wrong; it looks like bracketed paste was enabled for Windows Terminal 1.7: microsoft/terminal#395 -- I'm currently reproducing this same bug on WT 1.18, the behavior is the same as that shown above. Further, in all terminals I've tried, if I intentionally typo Possibly related issues: |
Opening the
The resulting path looks like |
Summary
New user, accustomed to nvim on *nix but currently using hx 23.03 on windows 10.
I can't seem to open a file from my synced network desktop.
If I right-click and "copy as path": "\1.2.3.4\UsersFiles\me\Desktop\file.txt"
Dragging the file onto an open nvim window opens it properly. Dragging onto an open helix window, I see the below on the command line and no file opens:
select:ersFiles\me\Desktop\file.txt
If I instead copy the file to a local directory and drag it in, I get the full path:
:\Users\me\Downloads\file.txt
but it still doesn't open.If I run
:o
and then drag in the local file I can get it to open.If I run
:o
and then drag in the network file it lags and freezes at:o \\
... pauses for 10 seconds then gets to:o \\1
... another 10 seconds then:o \\1.
If I right click, copy as path, confirm that I have
"\\1.2.3.4\UsersFiles\me\Desktop\file.txt"
on my clipboard (including the quotes), then run:o
-- I am unable to paste in the path.<c-v>
pasted in a literalv
,<c-V>
a literalV
, right click the mouse doesn't do anything.Is there any way for me to open this file?
Reproduction Steps
As per above
Helix log
~/.cache/helix/helix.log
doesn't exist.Platform
Windows 10
Terminal Emulator
Running hx.exe directly
Helix Version
23.03
The text was updated successfully, but these errors were encountered: