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

How to "replace_on_insert" on key binding, not auto_complete_trigger #58

kud opened this issue Aug 1, 2019 · 0 comments


Copy link

commented Aug 1, 2019


I've got a lil problem.

replace_on_insert works like a charm when it's auto_complete_trigger ed like:

  "debug": false,
  "exclude_folders": ["node_modules", "bower_components", "src_legacy", "dist"],
  "additional_scopes": [
      // es6 import from/import "*"
      "scope": "string.quoted.double.js.fjsx15",

      "auto": true,
      "relative": false,
      "base_directory": false,
      "prefix": ["from", "import"],
      "extensions": ["ts", "js", "html", "scss", "json"],
      "replace_on_insert": [
        ["/src/", "~/"],
        ["\\.(js|ts)$", ""],
        ["([^.])\\/index$", "\\1"],
        ["^([\\/.]+)?\\/(bower_components|node_modules)\\/", ""]
			"characters": "abcdefghijklmnopqrstuvwxyz",
			"selector": "string.quoted.double.js.fjsx15"

but when I use the keyboard combo, the replace_on_insert doesn't apply, do you know why?

Kapture 2019-08-02 at 1 11 38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.