Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mulle-cc/sublimemulleobjc
🍋 Plugin for Sublime Text to support Objective-C and specifically mulle-objc
https://github.com/mulle-cc/sublimemulleobjc
mulle-objc objective-c sublime-package sublime-text sublime-text-plugin
Last synced: 24 days ago
JSON representation
🍋 Plugin for Sublime Text to support Objective-C and specifically mulle-objc
- Host: GitHub
- URL: https://github.com/mulle-cc/sublimemulleobjc
- Owner: mulle-cc
- License: bsd-3-clause
- Created: 2024-08-10T11:11:41.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-08-10T18:23:03.000Z (3 months ago)
- Last Synced: 2024-09-29T02:20:58.963Z (about 1 month ago)
- Topics: mulle-objc, objective-c, sublime-package, sublime-text, sublime-text-plugin
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SublimeMulleObjC
#### 🍋 Plugin for Sublime Text to support Objective-C and specifically [mulle-objc](//mulle-objc.github.io/).
Currently this extension highlights Objective-C selectors, and provides a
shortcut to copy the selection into a string, perfect for use in `@selector()`.
Might do more in the future.Assume you have this in your Sublime Text buffer:
``` objc
- (void) doWithBar:(int) bar andBaz:(int) baz;
```click on `doWithBar:` or `andBaz:`, then press [SHIFT]-[ALT]-[C] and now you
have the string "doWithBar:andBaz:" in your paste bufferAdd this keyboard shortcut definition to your Sublime Text bindings with the menu
entries "Preferences/Keybindings"## .sublime-keymap
``` python
[
{
"keys": ["alt+shift+c"],
"command": "copy_objectivec_selector"
}
]
```Optionally enable highlighting with the [SHIFT]-[ALT]-[MOUSE-LEFT] and "Preferences/Mouse Bindings":
## .sublime-mousemap
``` python
[
{
"button": "button1",
"modifiers": ["alt", "shift"],
"press_command": "drag_select",
"command": "highlight_objectivec_selector"
}
]
```This will clobber one of the predefined mouse actions though.
## Install
In Sublime Text "Tools/Command Palette..." execute "Add Repository". Now enter `https://github.com/mulle-cc/SublimeMulleObjC.git`. Finally execute "Install Package" and choose "SublimeMulleObjC".