Skip to content

Esc does not work even after updating to 4.0.3 or 4.1.0 #124

@takezo39

Description

@takezo39

Description

Esc does not revert to normal mode after using Shift+r to replace multiple characters

Reproduce

  1. Write a word in a cell in insert mode
  2. Hit Esc to go into normal mode
  3. Press Shift+r to go into replace mode
  4. Press Esc

Expected behavior

Should go into normal mode but stays in replace mode. Pressing Ctrl+c or Ctrl+[ does go into normal mode.

Context

  • Python package version:
pip show jupyterlab-vim
Name: jupyterlab-vim
Version: 4.1.0
Summary: Code cell vim bindings
Home-page:
Author: Axel Fahy
Author-email:
License: MIT License

        Copyright (c) 2017 Jacques Kvam

        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:

        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.

        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Location: /Users/markhashimoto/test/venv/lib/python3.9/site-packages
Requires: jupyterlab
Required-by:
  • Extension version: 4.1.0
jupyter labextension list
JupyterLab v4.0.7
/Users/markhashimoto/test/venv/share/jupyter/labextensions
        jupyterlab_pygments v0.2.2 enabled  X (python, jupyterlab_pygments)
        @axlair/jupyterlab_vim v4.1.0 enabled OK (python, jupyterlab_vim)

/usr/local/share/jupyter/labextensions
        @jupyter-widgets/jupyterlab-manager v3.0.0 enabled  X (python, jupyterlab_widgets)


   The following extensions are outdated:
        jupyterlab_pygments
        @jupyter-widgets/jupyterlab-manager

   Consider checking if an update is available for these packages.
jupyter server extension list
Config dir: /Users/markhashimoto/.jupyter

Config dir: /Users/markhashimoto/test/venv/etc/jupyter
    jupyter_lsp enabled
    - Validating jupyter_lsp...
Package jupyter_lsp took 0.0372s to import
A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
      jupyter_lsp 2.2.0 OK
    jupyter_server_terminals enabled
    - Validating jupyter_server_terminals...
Package jupyter_server_terminals took 0.0212s to import
      jupyter_server_terminals 0.4.4 OK
    jupyterlab enabled
    - Validating jupyterlab...
Package jupyterlab took 0.0931s to import
      jupyterlab 4.0.7 OK
    notebook_shim enabled
    - Validating notebook_shim...
Package notebook_shim took 0.0000s to import
A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
      notebook_shim  OK

Config dir: /usr/local/etc/jupyter
  • Operating System and its version: MacOS 11.7.9
  • Browser and its version: Chrome Version 116.0.5845.187 (Official Build) (x86_64)
Command Line Output
jupyter lab
[I 2023-10-18 19:02:25.496 ServerApp] Package jupyterlab took 0.0000s to import
[I 2023-10-18 19:02:25.642 ServerApp] Package jupyter_lsp took 0.1458s to import
[W 2023-10-18 19:02:25.643 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-10-18 19:02:25.668 ServerApp] Package jupyter_server_terminals took 0.0246s to import
[I 2023-10-18 19:02:25.668 ServerApp] Package notebook_shim took 0.0000s to import
[W 2023-10-18 19:02:25.668 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-10-18 19:02:25.670 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2023-10-18 19:02:25.675 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2023-10-18 19:02:25.682 ServerApp] jupyterlab | extension was successfully linked.
[W 2023-10-18 19:02:26.338 ServerApp] jupyter_nbextensions_configurator | error adding extension (enabled: True): The module 'jupyter_nbextensions_configurator' could not be found (No module named 'jupyter_nbextensions_configurator'). Are you sure the extension is installed?
    Traceback (most recent call last):
      File "/Users/markhashimoto/test/venv/lib/python3.9/site-packages/jupyter_server/extension/manager.py", line 319, in add_extension
        extpkg = ExtensionPackage(name=extension_name, enabled=enabled)
      File "/Users/markhashimoto/test/venv/lib/python3.9/site-packages/jupyter_server/extension/manager.py", line 183, in __init__
        self._load_metadata()
      File "/Users/markhashimoto/test/venv/lib/python3.9/site-packages/jupyter_server/extension/manager.py", line 198, in _load_metadata
        raise ExtensionModuleNotFound(msg) from None
    jupyter_server.extension.utils.ExtensionModuleNotFound: The module 'jupyter_nbextensions_configurator' could not be found (No module named 'jupyter_nbextensions_configurator'). Are you sure the extension is installed?
[I 2023-10-18 19:02:26.342 ServerApp] notebook_shim | extension was successfully linked.
[I 2023-10-18 19:02:26.436 ServerApp] notebook_shim | extension was successfully loaded.
[I 2023-10-18 19:02:26.439 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2023-10-18 19:02:26.441 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2023-10-18 19:02:26.447 LabApp] JupyterLab extension loaded from /Users/markhashimoto/test/venv/lib/python3.9/site-packages/jupyterlab
[I 2023-10-18 19:02:26.447 LabApp] JupyterLab application directory is /Users/markhashimoto/test/venv/share/jupyter/lab
[I 2023-10-18 19:02:26.448 LabApp] Extension Manager is 'pypi'.
[I 2023-10-18 19:02:26.452 ServerApp] jupyterlab | extension was successfully loaded.
[I 2023-10-18 19:02:26.454 ServerApp] Serving notebooks from local directory: /Users/markhashimoto/test
[I 2023-10-18 19:02:26.454 ServerApp] Jupyter Server 2.8.0 is running at:
[I 2023-10-18 19:02:26.454 ServerApp] http://localhost:8888/lab?token=180f8b9185f9e914880b271d0f5d5a6b83f3c2630ff2e403
[I 2023-10-18 19:02:26.454 ServerApp]     http://127.0.0.1:8888/lab?token=180f8b9185f9e914880b271d0f5d5a6b83f3c2630ff2e403
[I 2023-10-18 19:02:26.454 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-10-18 19:02:26.473 ServerApp]
To access the server, open this file in a browser:
    file:///Users/markhashimoto/Library/Jupyter/runtime/jpserver-53538-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/lab?token=180f8b9185f9e914880b271d0f5d5a6b83f3c2630ff2e403
    http://127.0.0.1:8888/lab?token=180f8b9185f9e914880b271d0f5d5a6b83f3c2630ff2e403

[I 2023-10-18 19:02:27.783 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
[W 2023-10-18 19:02:32.585 LabApp] Could not determine jupyterlab build status without nodejs

Web Browser Output
Paste the output from your browser web console here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions