Skip to content
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

Don't work execute-file function on windows #11

Closed
cagechi opened this issue Mar 13, 2023 · 18 comments
Closed

Don't work execute-file function on windows #11

cagechi opened this issue Mar 13, 2023 · 18 comments
Labels
bug Something isn't working question Further information is requested

Comments

@cagechi
Copy link

cagechi commented Mar 13, 2023

execute-file function is same xyzzy's shell-execute ?

ps. tell me how to show 2-windows-layout

@obaland
Copy link
Owner

obaland commented Mar 13, 2023

The execute-file action executes a file as an external program.
For example, an .xlsx file executes an Excel program, unlike xyzzy's shell-execute action.

Also, the way to launch the two windows is to use the Tab key in the default key bindings. Once launched, you can use the Tab key to move between windows.

Your feedback is welcome.

@obaland obaland added the question Further information is requested label Mar 13, 2023
@cagechi
Copy link
Author

cagechi commented Mar 13, 2023

Thank you for reply.
But when I select the xlsx file and press 'x' nothing happens.

Thank you!! When I press the Tab key, it became 2windows.
But pressing the 'C' key does not copy to another window,
copied to the clipboard
When press the 'cc' key, got an error Failed to copy "filename"

@obaland
Copy link
Owner

obaland commented Mar 14, 2023

Thank you for your response.
Sorry for any inconvenience caused.

I will investigate the following two issues.

  1. copy action fails.
  2. The execute_file action does not work.

I will investigate 1. first.
2. may take some time.

Please keep your help in the future.

@obaland obaland added the bug Something isn't working label Mar 14, 2023
@obaland
Copy link
Owner

obaland commented Mar 24, 2023

@cagechi
Thank you for your patience.
execute-file action has been fixed (073601a). This should improve things, so could you please give it a try?

Also, have added a note to the documentation about the 2-screen filer (929bc2a).
I hope this will be helpful.

Best regards.

@cagechi
Copy link
Author

cagechi commented Mar 24, 2023

I checked it, but the result does not change.

copy action

  1. execute vfiler
  2. press the Tab key -> become 2-window layout
  3. press the Space key for marking
  4. press the C key then Copy to the clipboard message is displayed.
  5. press the CC key then Failed to copy message is displayed.

execute-file

press the x then nothing happens.

@obaland
Copy link
Owner

obaland commented Mar 25, 2023

Thank you for your report.

Sorry. I do not know immediately.
Let me check a few things in order to match our environment as much as possible.

  1. OS is Windows, right?
  2. Neovim or Vim?
  3. How are you running (Neo)vim? (e.g. Powershell, cmd, or GUI, etc.)

By the way, in the case of vfiler.vim,
if you are using a 2-window filer, you can copy the selected file to the other one by just cc.

@cagechi
Copy link
Author

cagechi commented Mar 27, 2023

The environment is as follows

  1. Windows 10, Windows 11
  2. Neovim v0.8.3
  3. PowerShell(7.3.3) + nvim , goneovim(0.6.4)

if you are using a 2-window filer, you can copy the selected file to the other one by just cc.

I am sorry. I wrote it incorrectly.
The correct expression is "press the cc key then [vfiler]: Failed to copy message is displayed."

@obaland
Copy link
Owner

obaland commented Mar 27, 2023

Thanks for the information.

Let me check one more thing just to be sure.
The file you are trying to copy or executing is,
protected operating system file, is it not?

@cagechi
Copy link
Author

cagechi commented Mar 27, 2023

Thank you for fast response.

protected operating system file, is it not?

No, It's normal file.
For example ~/hoge.txt

@obaland
Copy link
Owner

obaland commented Mar 27, 2023

Thank you for your response.

I will investigate based on the information you provided and will contact you as soon as make progress.
If you have any other insights, it would be greatly appreciated.

Best regards.

@obaland
Copy link
Owner

obaland commented Mar 31, 2023

@cagechi
Sorry, I trying to determine the cause of the problem, but are having difficulty.
If you don't mind, could you please let me know the configuration of Neovim?

@cagechi
Copy link
Author

cagechi commented Mar 31, 2023

I have checked all the settings.
Apparently, there was a problem with the shell options.
I disabled the shell options and vfiler worked fine.
-- vim.opt.shell = 'pwsh.exe'

I will disable it and operate it for now.
Thank you very much for your help.

@obaland
Copy link
Owner

obaland commented Apr 1, 2023

Thanks for providing valuable information.

I have modified it so that it does not depend on the sell option. (f554e95)
Please give it a try.

@cagechi
Copy link
Author

cagechi commented Apr 1, 2023

I tried it.
Function copy and move worked fine, but function execute-file did not work.

@obaland
Copy link
Owner

obaland commented Apr 4, 2023

Thank you again and again for your cooperation.
I have corrected the apparent cause of the problem. (d5a2dea)

Please give it a try.

@cagechi
Copy link
Author

cagechi commented Apr 4, 2023

Function execute-file worked fine!!
Thanks for fixing it.

@obaland
Copy link
Owner

obaland commented Apr 4, 2023

Thanks to your help, have a better product.
Thank you for your cooperation.

@obaland
Copy link
Owner

obaland commented Apr 4, 2023

@cagechi
I will close it.
Please contact us if you have any problems.

@obaland obaland closed this as completed Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants