Comments (17)
For anyone having trouble with the key bindings mentioned above not firing the upload command (upload_binary), the command in the latest version of Stino has been changed to upload_sketch.
from stino.
I agree, but default key binding may conflict with other plugin.
This my key binding:
[ { "keys": ["super+f1"], "command": "show_arduino_menu" }, { "keys": ["super+alt+n"], "command": "new_sketch" }, { "keys": ["super+alt+l"], "command": "compile_sketch" }, { "keys": ["super+alt+u"], "command": "upload_binary" }, { "keys": ["super+alt+m"], "command": "start_serial_monitor" }, { "keys": ["super+alt+k"], "command": "stop_serial_monitor" }, { "keys": ["super+alt+x"], "command": "send_to_serial" } ]
from stino.
I am working on the next version. The next version will add support of ST3. But it is not easy because ST3 uses python 3.3. I will consider to add key bindings for next version.
from stino.
Sounds good. I made my own key bindings as well.
@Robot-Will Awesome job btw it works flawlessly I think you did very well with this plugin.
from stino.
For users who are new to sublime text (like I am as of today), here's how you would add the above keybindings to sublime text 2.
Just select:
Preferences - > Key Bindings - User
and a tab will open with the preferences. Paste xiujunma's keymap from above there, save it (then close I suppose) and mine were immediately active.
Since I come from windows (eclipse/visual studio) and the mac keyboard I have has no auxiliary purpose for F5 and F6, I added these lines to xiujunma's above to make F5 compile and F6 compile and upload:
{ "keys": ["f5"], "command": "compile_sketch" },
{ "keys": ["f6"], "command": "upload_binary" },
just add those inside of the square brackets, making sure every line but the last line ends with a comma.
@Robot-Will can we have something like this that at least could be enabled (keep it off if needed by default to avoid conflicts)? As a new user just getting set up was enough of a pain, and I didn't immediately know how to get some key bindings. I'm lucky I found this thread!
from stino.
Just to clarify for any mac user's - the super key is CMD
from stino.
cross posting; #57 (comment)
from stino.
Hi, great plugin!
On my German keyboard (using Windows) there is a "Alt Gr" Key, which basically does the same as pressing alt + crtl
["alt+ctrl+e"] produces €
["alt+ctrl+m"] produces µ
["alt+ctrl+2"] produces ²
["alt+ctrl+3"] produces ³
["alt+ctrl+0"] produces }
["alt+ctrl+9"] produces ]
["alt+ctrl+8"] produces [
The default keybindings of Stino result in me beeing unable to type €, µ, ², ³, }, ] or [.
So for the moment I got rid of these bindings which is working out ok for me…
Is it possible to switch these bindings off when switching the language to german?
Thank you!
from stino.
I think you can revise the key binding file (Default (Windows).sublime-keymap) by yourself.
from stino.
Hello,
this Default (Windows).sublime-keymap on french keyboard prevents caracters like '#' or '' to work correctly (it's really annoying). The documentation's piece of advice is to not use Ctrl+Alt+ for any Windows key bindings http://docs.sublimetext.info/en/latest/reference/key_bindings.html#warning-about-bindable-keys.
Best Regards,
KaB
from stino.
It's possible to use those characters on German, French or any other keyboard. I have them for my Spanish keyboard. Just click on Preferences / Key Bindings - User, and for your German keyboard paste the following and save the file:
[
{ "keys": ["ctrl+alt+e"], "command": "insert", "args": {"characters": "€"} },
{ "keys": ["ctrl+alt+m"], "command": "insert", "args": {"characters": "µ"} },
{ "keys": ["ctrl+alt+2"], "command": "insert", "args": {"characters": "²"} },
{ "keys": ["ctrl+alt+3"], "command": "insert", "args": {"characters": "³"} },
{ "keys": ["ctrl+alt+0"], "command": "insert", "args": {"characters": "}"} },
{ "keys": ["ctrl+alt+9"], "command": "insert", "args": {"characters": "]"} },
{ "keys": ["ctrl+alt+8"], "command": "insert", "args": {"characters": "["} }
]
For my Spanish Keyboard, I have:
[
{ "keys": ["ctrl+alt+1"], "command": "insert", "args": {"characters": "|"} },
{ "keys": ["ctrl+alt+2"], "command": "insert", "args": {"characters": "@"} },
{ "keys": ["ctrl+alt+3"], "command": "insert", "args": {"characters": "#"} },
{ "keys": ["ctrl+alt+e"], "command": "insert", "args": {"characters": "€"} },
{ "keys": ["ctrl+alt+m"], "command": "insert", "args": {"characters": "µ"} }
]
from stino.
As Kaboofa already stated the documantation says:
Ctrl+Alt+ should not be used for any Windows key bindings. [...] the user’s ability to insert non-ASCII characters would be compromised.
Witch is exactly what happens.
Of cause you can change this manualy as you described. I still think it would be nice to make the key-bindings language-dependent
This way it would simply work out of the box.
Unfortenately I don't know how to implement this, if somone maybe has a hint that would get me started i would be glad to try.
Greetings
from stino.
I am sorry for I am busy and have no time to improve this plugin frequently.
As I do not know what's the best hotkey solution for everyone, I did not take any advise of this topic.
If you are not satisfied with the current key settings, you can revise the key setting files manually.
Default (Linux).sublime-keymap
Default (OSX).sublime-keymap
Default (Windows).sublime-keymap
from stino.
@Robot-Will As per the Unofficial Sublime Text API documentation, the mappings CTRL+ALT+<alphanum>
should be avoided on Windows and OPTION+<alphanum>
should be avoided on OS X. I would simply follow this rule and pick some key bindings that use the function keys by default. Those are bound to less frequently, and everyone's just going to remap them to what they want anyway. As of the last update I got on Windows, CTRL+ALT+P
was bound to "Upload with Programmer", but it conflicts with the widely used workspace quick switch command. If I change it to something else in the default file, it just gets overwritten on the next update. Please consider picking new bindings that might be more inconvenient to press, but less likely to conflict with built-in bindings.
from stino.
@Robot-Will unfortunately none of the proposed solution is appropriate:
- manually revision of keymap files would be fine only until the package is upgraded.
- Overriding those problematic key bindings in user keymap is not working when some of the inserted characters, like
{
should trigger some command by themselves like\cite{
in LaTeX - unbinding in user keymap is not possible.
Here's my vote to change them in this package keymap. The goal is not to guess everyone's best hotkey solution, just to follow a good advice stated in SublimeText documentation.
from stino.
Thanks Hector bravo for...
[
{ "keys": ["ctrl+alt+1"], "command": "insert", "args": {"characters": "|"} },
{ "keys": ["ctrl+alt+2"], "command": "insert", "args": {"characters": "@"} },
{ "keys": ["ctrl+alt+3"], "command": "insert", "args": {"characters": "#"} },
{ "keys": ["ctrl+alt+e"], "command": "insert", "args": {"characters": "€"} },
{ "keys": ["ctrl+alt+m"], "command": "insert", "args": {"characters": "µ"} }
]
from stino.
For anyone having trouble with the key bindings mentioned above not firing the upload command (upload_binary), the command in the latest version of Stino has been changed to upload_sketch.
Thanks @keystoneclimber
Update: the upload command is now stino_upload
from stino.
Related Issues (20)
- Analog Pins (A0-A5) can not read in .h files HOT 3
- How to set the language? HOT 2
- Arduino Plugin for Sublime Error HOT 1
- install platform esp8266 and build with esp32 platform bug HOT 2
- Sublimetext strat up message
- Building problem by using Teensy 3.6 + Sublime Text 3 + Stino HOT 1
- This is a correct way to programming many resources?
- '{tools.gen_esp32part.cmd}' is not recognized as an internal or external command, operable program or batch file. HOT 4
- error downloading the package in sublime_text 3.126(I think) the consol shows various error messages, all of which have to do with invalid SSL key (Package Control: Error downloading repository. HTTP exception InvalidCertificateException (Host www.github.com returned an invalid certificate ([SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:548))) downloading https://www.github.com/Robot-Will/Stino.) HOT 1
- Build issue: "Command line too long" (ESP32, M5Stack) HOT 1
- Toolchain is not ready
- Stino will download apple OSX version of avr tools on Linux Ubuntu HOT 2
- Toolchain error in stm32duino core
- Downlads were failing on me... HOT 1
- Compiling without main () or setup() and loop() functions.
- Exec format error
- Error Stino HOT 1
- EXEC format error
- Non-alphabetical sorting in Libraries & Sketches drop-down menus HOT 1
- [Error] AttributeError: 'NoneType' object has no attribute 'arduino_info' - faulty stino installation:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stino.