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

Double Quotation Character not working on Windows #2479

Closed
tahir-hassan opened this issue Jul 29, 2024 · 1 comment
Closed

Double Quotation Character not working on Windows #2479

tahir-hassan opened this issue Jul 29, 2024 · 1 comment

Comments

@tahir-hassan
Copy link

tahir-hassan commented Jul 29, 2024

Before I start, I just want to say that I am very impressed with your work.

Description of issue

On Windows, pressing double quotation key doesn't work. This is when I use it on the native Windows Python platform.

How to reproduce

I am following the tutorial (I am on the bit Understanding Rows) and when it asked me to type in OPERATOR == "BUSINESS" I realized that the double quote character did not work.

How I am installing Visidata

I am installing Visidata using the following steps:

  • Install Python using Scoop using scoop install main/python
  • Install Visidata using pip3 install visidata

What went wrong

It should write a double quotation character, however nothing happens (no double quotation character is inserted).

Additional context

Software Version
Operating System Windows 10 Enterprise
Python 3.12.2
Terminal Wezterm, Windows Terminal

This works, however...

Pressing double quote key works if I install Visidata using MSYS2's Python.

Steps to reproduce working Visidata

  • Install MSYS2 using Scoop using scoop install main/msys2.
  • Within MSYS2/Mingw64...
    • install Python using pacman using pacman -S python
    • install Pip using pacman using pacman -S python-pip
    • Create a new venv for Visidata: cd ~; mkdir visidata; python -m venv ~/visidata
    • Install Visidata in the above venv: ~/visidata/bin/pip install visidata
    • Use ~/visidata/bin/visidata to open files.

I am using Wezterm in both instances (raw Python and MSYS2's Python).

Conclusion

I have also found that the mouse works in MSYS2's Visidata but not the other one. I think perhaps the documentation should just mention that it is a bad idea to install Visidata in the normal Python and just use MSYS2's Python instead.

@anjakefala
Copy link
Collaborator

Thanks for all your thorough investigation @tahir-hassan!

I have also found that the mouse works in MSYS2's Visidata but not the other one. I think perhaps the documentation should just mention that it is a bad idea to install Visidata in the normal Python and just use MSYS2's Python instead.

We have this line in the docs: https://www.visidata.org/install/#windows

Use Windows Subsystem for Linux (WSL).

I can definitely add a mention of MSYS2's Python, since you tested it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants