GithubHelp home page GithubHelp logo

boundkeys's People

Contributors

codeeffect avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

truepath

boundkeys's Issues

Error if keymap file has bindings to disabled package

If *.sublime-keymap has binding to disabled package then package doesn't work.

For example
{ "keys": ["ctrl+alt+{"], "command": "move_to", "args": {"to": "{", "extend": false} }

Sublime console write:
Unable to parse binding {key: following_text, keys: [ctrl+alt+{], match_all: false, operand: , operator: regex_contains}

Now pressing shift+f10 the console write:
Traceback (most recent call last): File "./sublime_plugin.py", line 362, in run_ File "./boundkeys.py", line 373, in run File "./boundkeys.py", line 93, in getOutput KeyError: 'command'

UnicodeEncodeError

I'm getting this error message in console when trying to run "List Bound Keys".

Traceback (most recent call last):
  File "./sublime_plugin.py", line 362, in run_
  File "./boundkeys.py", line 375, in run
  File "./boundkeys.py", line 99, in getOutput
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 7: ordinal not in range(128)

Doesn't detect overridden keys

It is known that in ST3, an extension's keymap can be overridden by creating a file with the same package structure and name in the Packages folder.

e.g. to override Default (Windows).sublime-keymap in the Installed Packages\Google Search.sublime-package, it is enough to create Google Search dir in Packages and a file Default (Windows).sublime-keymap with the overridden keymaps

Unfortunately BoundKeys doesn't detect the new overridden keymaps yet

Cannot run: get TypeError 'encoding' is an invalid keyword argument

On Windows 7 64-bit, after installing BoundKeys from Package Control into ST2, running it shows this on the console (and no results appear):

Traceback (most recent call last):
  File ".\sublime_plugin.py", line 362, in run_
  File ".\boundkeys.py", line 252, in run
TypeError: 'encoding' is an invalid keyword argument for this function

Doesn't work with PlainTasks

Works great until I install PlainTasks, then I get this:

Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 549, in run_
return self.run(edit)
File "boundkeys in /Users/steph/Library/Application Support/Sublime Text 3/Installed Packages/BoundKeys.sublime-package", line 336, in run
File "X/encodings/ascii.py", line 26, in decode
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1505: ordinal not in range(128)

Its greek to me, but I hope you can fix it. I love to use your package.
Thanks!

[Bug] TypeError: 'bool' object is not iterable

1. Summary

I can not begin to use BoundKeys, I get stack trace.

2. Expected behavior

BoundKeys

3. Actual behavior

command: bound_keys
Error parsing JSON: Expecting property name enclosed in double quotes: line 373 column 13 (char 11616)
Error parsing JSON: Expecting property name enclosed in double quotes: line 7 column 2 (char 126)
Error parsing JSON: Expecting property name enclosed in double quotes: line 8 column 11 (char 211)
Traceback (most recent call last):
  File "E:\Sublime Text 3\sublime_plugin.py", line 818, in run_
    return self.run(edit)
  File "boundkeys in E:\Sublime Text 3\Data\Installed Packages\BoundKeys.sublime-package", line 356, in run
TypeError: 'bool' object is not iterable

4. Steps to reproduce

The problem is reproduced for me in a version of Sublime Text without plugins and user settings.

I install BoundKeys via Package Control → I restart Sublime Text → Ctrl+Shift+PList bound keys → I get stack trace.

All my .sublime-keymap files successfully worked for me.

5. Environment

Operating system and version:
Windows 32-bit 10.0.14393
Sublime Text:
Build 3126

Thanks.

Handle /* */ style comments

These are "valid" in ST, so don't forget to remove them also.

Not really an issue, but you might want to consider creating a quick panel entry also. From writing my key conflict detection plugin, it's not always necessary to bind it to a key as it's not a common operation. I did see the menu entry, but I think it would be nice to have a quick panel entry also. Anyways, just my 2 cents.

UnicodeDecodeError

Using Sublime Text 3 (3033) on OS X. Tried installing the plugin both via Package Control and manually via git, same problem when running List bound keys:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 549, in run_
    return self.run(edit)
  File "/Users/hced/Dropbox/Henrik/Application Support/Sublime Text 3/Installed Packages/BoundKeys.sublime-package/boundkeys.py", line 253, in run
  File "X/encodings/ascii.py", line 26, in decode
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 140: ordinal not in range(128)

RuntimeError: Attempt to read ZIP archive that was already closed

Hi, first of all thanks for your plugin!

I've got the next error with it, this is my full sublimetext log:

startup, version: 3035 osx x64 channel: dev
executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Users/mak/Library/Application Support/Sublime Text 3/Packages
state path: /Users/mak/Library/Application Support/Sublime Text 3/Local
hardware concurrency: 8
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/mak/Library/Application Support/Sublime Text 3/Installed Packages
resources scanned
found 13 files for base name Default.sublime-keymap
found 2 files for base name Default.sublime-mousemap
found 9 files for base name Main.sublime-menu
loading bindings
loading pointer bindings
found 1 files for base name Flatland Dark.sublime-theme
theme loaded
app ready
pre session restore time: 0.144332
using gpu buffer for window
using gamma: 2 (err: 6.55744)
first paint time: 0.245288
wrote startup cache, added files: 1 orphaned files: 5 total files: 191 cache hits: 190
startup time: 0.290689
launching: /Applications/Sublime Text.app/Contents/MacOS/plugin_host
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin Vintage.vintage
reloading plugin Vintage.vintage_commands
reloading plugin Vintage.vintage_motions
reloading plugin AdvancedNewFile.AdvancedNewFile
reloading plugin AlignTab.aligntab
reloading plugin ApplySyntax.ApplySyntax
reloading plugin ApplySyntax.is_rails_file
reloading plugin CoffeeScript.CoffeeScript
reloading plugin GitGutter.git_gutter
reloading plugin GitGutter.git_gutter_change
reloading plugin GitGutter.git_gutter_events
reloading plugin GitGutter.git_gutter_handler
reloading plugin GitGutter.git_helper
reloading plugin GitGutter.view_collection
reloading plugin SCSS.scss_completions
reloading plugin SideBarEnhancements.SideBar
reloading plugin SideBarEnhancements.StatusBarFileSize
reloading plugin SideBarEnhancements.StatusBarModifiedTime
reloading plugin SublimeJEDI.python_go_to
reloading plugin SublimeJEDI.sublime_jedi
reloading plugin BoundKeys.boundkeys
reloading plugin FindSelected.findselected
reloading plugin Package Control.Package Control
loaded 1232 snippets
reloading plugin SideBarEnhancements.SideBarDefaultDisable
plugins loaded
Package Control: Skipping automatic upgrade, last run at 2013-05-17 10:54:50, next run at 2013-05-17 11:54:50 or after
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 549, in run_
return self.run(edit)
File "/Users/mak/Library/Application Support/Sublime Text 3/Packages/BoundKeys/boundkeys.py", line 300, in run
str(zip.open(zipName, "r").read(), "utf-8")
File "X/zipfile.py", line 1107, in open
RuntimeError: Attempt to read ZIP archive that was already closed

Any ideas?

Seems to be broken

Got an error when tried to run it.

Traceback (most recent call last):
File ".\sublime_plugin.py", line 362, in run_
return self.run(edit)
File ".\boundkeys.py", line 347, in run
KeyError: 'object'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.