Code Monkey home page Code Monkey logo

Comments (5)

math2001 avatar math2001 commented on May 29, 2024 1

I'm planning on changing this shortcut, maybe even removing it altogether (but explaining how to the user how to bind something themselves to fm_create).

To fix your issue now, you can add this to your keybindings:

{
	"keys": ["alt+n"],
	"command": "insert",
	"args": {
		"characters": "~"
	}
}

What shortcut are you going to be using instead? I'm asking because I don't really have any other idea as a good default binding for this command... 🙂

from filemanager.

math2001 avatar math2001 commented on May 29, 2024 1

otherwise every plugin is polluting the bindings and it’s a pain to search what’s breaking what.

Yep, I think that's what I will end up doing.

Here's another idea: add a setting to enable default keybindings (this would be a boolean setting in FileManager.sublime-settings using package_setting_context)

Basically, I would like things to work "out of the box", whilst not being a pain if it doesn't quite work for someone.

from filemanager.

redgluten avatar redgluten commented on May 29, 2024

And there doesn’t seem to be a clean way to restore its usage with the way Sublime works now. Adding another keybinding for fm_create while working does not overwrite the alt+n binding. Using something like "keys": ["alt+n"], "command": "" } is also not an option since the binding will still be intercepted. This is partly an issue with Sublime itself too but maybe it would be better not to put any keybindings by default? Or do you know any good solution to this issue?

from filemanager.

redgluten avatar redgluten commented on May 29, 2024

Thanks for your answer, I used this fix before but couldn’t find it anymore. It’s not ideal though but maybe the issue should be solved on Sublime side? Overriding global shortcuts without any easy way to tell what‘s going on or reverting behavior is not ideal…

Otherwise I think it is better to even remove the the binding altogether considering the situation and adding a message in the next update to explain why. I’m using super+alt+n for the fm_create_ personally but it might not be ideal either. I’d say just let users set their own bindings, otherwise every plugin is polluting the bindings and it’s a pain to search what’s breaking what.

from filemanager.

math2001 avatar math2001 commented on May 29, 2024

Oh wait, I've just realized this that I had already implemented that feature 3 years ago: c9dd7b1

The setting is called "create_keybinding_enabled". Preferences: FileManager Settings, and set add "create_keybinding_enabled": false.

The FileManager is somewhat extensive, but not discoverable and it doesn't include everything either. There should be a single document (probably the readme) listing common tips and tricks #52.

from filemanager.

Related Issues (20)

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.