jmm / Sublime-Text-Block-Nav

Adds functionality to assist with navigating block structures in "braceless" languages like Ruby and Python where brace matching can not be used.
10 stars 2 forks source link

The plugin is not recognized by sublime text 2 in Mac #3

Open hieonn opened 8 years ago

hieonn commented 8 years ago

Same to the title of this, the plugin is not recognized by sublime text 2 in Mac. I've installed by repository of it, but I don't see plug in preference and doesn't work ctrl+shift+b in Python code. It would be really helpful to people who want to use your plugin if you describe how to install and how to check if the plugin is installed in right way in Sublime-Text-Block-Nav page in https://github.com/jmm/Sublime-Text-Block-Nav.

Deeply appreciated for your great work! Thanks.

jmm commented 8 years ago

Thanks! You're right, the README should explain how to install it. It's meant to be installed via the Package Control system. https://packagecontrol.io/packages/Block%20Nav

hieonn commented 8 years ago

Thanks for your quick response!

It is a really helpful information to me, Could you comment it if it is right way or not? such that I still don't see your plugin in Preferences → Package Settings even after installation through Package Control System. and even more doesn't work with the default shortcut ctrl-shift-b. Sorry for nagging you again but I really want to use it! Thanks in advance!

jmm commented 8 years ago

@hieonn I'm sorry, I don't know how much help I can be here.

I still don't see your plugin in Preferences → Package Settings

I think that's normal, because this package doesn't create any menus.

doesn't work with the default shortcut ctrl-shift-b

Perhaps that's because Ctrl is specific to Windows. If you can figure out how to assign new keybindings to the commands created by this package you can give that a shot. That should be a generic feature of Sublime Text -- I think you'd just add them to your user key bindings file. You can see the commands and arguments used by this package in the keybindings file it ships with. I hope this helps, good luck. You might want to find a forum for Submlime Text help / support and try asking there.

ltrainpr commented 4 years ago

I'm sure this is resolved, but for anyone that finds this issue. I was able to install this on mac with Package Control on Sublime Text 3. I overwrote the key bindings by inserting the following in the User/Default (OSX).sublime-keymap file (aka the default Default (OSX).sublime-keymap -- User file). You can easily get to the file with Sublime Text > Preferences > Key Bindings

  {
    "keys" : ["alt+k"],
    "command" : "block_nav",
    "args" : {
      "v_dir" : -1,
      "depth_offset" : 0
    }
  },
  {
    "keys" : ["alt+h"],
    "command" : "block_nav",
    "args" : {
      "v_dir" : -1,
      "depth_offset" : -1
    }
  },
  {
    "keys" : ["alt+j"],
    "command" : "block_nav",
    "args" : {
      "v_dir" : 1,
      "depth_offset" : 0
    }
  },
  {
    "keys" : ["alt+l"],
    "command" : "block_nav",
    "args" : {
      "v_dir" : 1,
      "depth_offset" : 1
    }
  }