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

Ctrl-s no longer searches in jupyter notebooks #1534

Open
notuntoward opened this issue Feb 12, 2023 · 4 comments
Open

Ctrl-s no longer searches in jupyter notebooks #1534

notuntoward opened this issue Feb 12, 2023 · 4 comments

Comments

@notuntoward
Copy link

notuntoward commented Feb 12, 2023

If I'm in a python file being viewed as a Jupyter notebook, search no longer works -- if I type Ctrl-s, nothing happens.

This was working as recently as last week. Not sure what changed.

@holocronweaver
Copy link

holocronweaver commented Apr 8, 2023

Still an issue couple months later on a fresh VS Code install. Only have Jupyter and this extension installed.

VS Code: 1.77.1
Jupyter extension: v2023.3.1000892223 (tried v2022.6.1101950301, no luck)
Awesome Emacs Keymap: v0.47.0 (tried v0.42.0, no luck)

I haven't tried older VS Code versions.

Workaround: remapped VS Code's 'Find' to 'Ctrl + s'. Not ideal, but unblocks me.

@kshartman
Copy link

I suspect that its the when clause for the two extensions key bindings.

@violapaul
Copy link

Same here. Any simple workaround?

@kshartman
Copy link

kshartman commented May 11, 2023

According to this you can use jupyter.isinteractiveornativeactive for filtering on jupyter notebooks. It has no upvotes, and since I uninstall jupyter I can't test it. Buf, if that link is correct you should be able to add

and !jupyter.isinteractiveornativeactive

to the existing when clause for emacs ctrl+s keybinding. Other hacks mentioned checking for the jupyter sidebar but they only work if the sidebar is open.

I am pretty sure it will work based on this ms article on jupyter when clauses. You may need to use more than one of these since there are different types of notebooks apparently. Just chain together negations with and to the ctrl+s keybinding of emacs.

if that works you can pull and change the package.json to contain the when clause that works for you and make a PR. maybe the author accepts it or you make your own version and load the visx,. I do this with several extensions where the author doesn't respond to my needs. That's why we code, no?

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

No branches or pull requests

4 participants