zed icon indicating copy to clipboard operation
zed copied to clipboard

Pressing column `:` types a dot `.` automatically in the command palette bar

Open mal1k-me opened this issue 11 months ago • 3 comments

Summary

Pressing column : types a dot . automatically in the command palette bar

Expected Behavior: Empty bar Actual Behavior: A dot is typed automatically in the bar

click to expand
{
  "edit_predictions": {
    "mode": "subtle",
    "copilot": {
      "proxy": null,
      "proxy_no_verify": null
    },
    "enabled_in_text_threads": false
  },
  "icon_theme": "JetBrains New UI Icons (Dark)",
  "base_keymap": "VSCode",
  "vim_mode": true,

  "cursor_blink": false,

  "inlay_hints": {
    "enabled": true
  },

  "diagnostics": {
    "include_warnings": true,
    "inline": {
      "enabled": true,
      "update_debounce_ms": 150,
      "padding": 4,
      "min_column": 0,
      "max_severity": "error"
    }
  },

  "buffer_font_family": "JetBrainsMono Nerd Font",
  "buffer_font_size": 17,
  "buffer_font_weight": 600,

  "theme": {
    "mode": "dark",
    "light": "One Light",
    "dark": "One Dark Pro"
  },

  "experimental.theme_overrides": {
    "syntax": {
      "keyword": {
        "font_style": "italic"
      }
    }
  },

  "autosave": "on_focus_change",
  "format_on_save": "off",
  "vim": {
    "toggle_relative_line_numbers": true
  },

  "telemetry": {
    "metrics": false,
    "diagnostics": false
  },

  "show_edit_predictions": false,
  "agent": {
    "always_allow_tool_actions": true,
    "default_profile": "ask",
    "default_model": {
      "provider": "copilot_chat",
      "model": "claude-3-7-sonnet"
    },
    "version": "2"
  },

  "languages": {
    "Python": {
      "language_servers": ["basedpyright", "!pyright"]
    }
  }
}

Image

UPDATE: Another symptom: using numbers for navigation in vim mode ignores numbers (example: 20j moves only one line downwards) and so is the case with other actions that involve numbers like pressing 0 to move to the beginning of the line.

Image

Zed Version and System Specs

Zed: v0.185.15 (Zed) 
OS: Linux Wayland arch unknown
Memory: 38.8 GiB
Architecture: x86_64
GPU: Intel(R) Iris(R) Xe Graphics (ADL GT2) || Intel open-source Mesa driver || Mesa 25.0.5-arch1.1

mal1k-me avatar May 11 '25 10:05 mal1k-me

@mal1k-me https://github.com/galoisgroupcn/zed/pull/5. Try this, and give us feedback. Even if it's not working, give us the output and we can reiterate the code till it works. Thanks!

galoisgroupcn avatar May 11 '25 11:05 galoisgroupcn

It works as expected after restarting Zed. It seems to happen only after long coding sessions.
Maybe hibernation plays a role in reproducing the problem.

UPDATE: I suspect that ctrl+j binding to toggle the terminal might also interfere and cause issues. The binding only works in insert mode (in the case of vim mode, same for ctrl+b binding to toggle the left panel) and it's registered later as a vim command since it's repeated when pressing dot . in normal mode and it may insert other characters as well.

mal1k-me avatar May 11 '25 12:05 mal1k-me

Probably related to #22437. If so, this will fix it:

  "buffer_font_family": "JetBrains Mono",
  "buffer_font_size": 17,
  "buffer_font_weight": 600,
  // Set nerd font specifically for terminal only
  "terminal": {
      "font_family": "JetBrainsMono Nerd Font",
  },

mal1k-me avatar May 12 '25 06:05 mal1k-me

I'm having the same issue.

LaurensDorival avatar Jun 28 '25 16:06 LaurensDorival

Hi there! 👋 We're working to clean up our issue tracker by closing older bugs that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and it will be kept open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, it will close automatically in 14 days. Thanks for your help!

github-actions[bot] avatar Nov 19 '25 11:11 github-actions[bot]