Git Product home page Git Product logo

codapluginkit's Introduction

Coda Plug-in Kit

If you've ever wished Coda could do even more than it does already, you're at the right place.

Coda 1.6 and later support Coda Plug-ins, which allow you to further extend its text editing functionality โ€” even if you can't program Cocoa.

Plug-ins have access to the text of the current document and can perform modifications on it as desired. For example, you could write a plug-in to insert the current date and time into your document, change the case of selected text, run code through a custom validator, or even wrap code with a special tag.

Plug-ins appear in Coda's plug-in menu or sidebar when installed.

There are three ways to write a plug-in. The first way is to write a script in any common scripting language, then use the separate Coda Plug-In Creator application to bundle your script into a Coda plug-in.

The second (more complex) way is to write directly to the Cocoa Plug-In API. You may create sidebar, text, and validation plugins using Cocoa. Lastly, sidebar plugins can be written using the new HTML/Scripting interface in 2.5.

Coda also allows further customization through the additional add-ons: Syntax Modes, Mode Completion Additions, and Themes. Syntax Modes allow Coda to understand and highlight languages that aren't included in the default application installation. Mode Completions extend the auto-complete system to include custom language additions for libraries and frameworks. Color Themes provide customized colors to be used for syntax highlighting source code.

If you'd like to submit a plugin to us please create an account at our plugin site and follow the instructions.

codapluginkit's People

Contributors

foozmeat avatar jamespanic avatar leancode avatar nklatt avatar wadeco avatar willco007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codapluginkit's Issues

Cocoa plugins cause Coda to crash on 10.8

I'm getting reports from users that the Dash Coda plugin causes Coda to crash on 10.8.

I am able to replicate the crash but I'm a bit lost on figuring out what causes it. I've tried stripping the plugin to its bare minimum and it still crashes.

I've tried the Capitalize plugin example from this repo and it also causes Coda to crash on 10.8.

Crash log:

Process:         Coda 2 [6314]
Path:            /Applications/Coda 2.5/Coda 2.app/Contents/MacOS/Coda 2
Identifier:      com.panic.Coda2
Version:         2.5.11 (7047)
Code Type:       X86-64 (Native)
Parent Process:  launchd [683]
User ID:         502

Date/Time:       2015-07-15 09:33:42.002 -0600
OS Version:      Mac OS X 10.8.5 (12F2518)
Report Version:  10

Interval Since Last Report:          44489 sec
Crashes Since Last Report:           3
Per-App Interval Since Last Report:  255747 sec
Per-App Crashes Since Last Report:   3
Anonymous UUID:                      7E7C75F3-3C38-7DB7-6437-9690C3B89D45

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000018

VM Regions Near 0x18:
--> 
    __TEXT                 00000001079c4000-0000000107f3a000 [ 5592K] r-x/rwx SM=COW  /Applications/Coda 2.5/Coda 2.app/Contents/MacOS/Coda 2

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                 0x00007fff8eb93498 objc_msgSend_vtable3 + 24
1   com.apple.Foundation            0x00007fff952252e7 -[NSBundle loadAndReturnError:] + 646
2   com.panic.Coda2                 0x0000000107bdc03f __32-[PlugInManager loadNewPlugins:]_block_invoke + 131
3   com.panic.Coda2                 0x0000000107bdbf08 -[PlugInManager loadNewPlugins:] + 435
4   com.panic.Coda2                 0x0000000107bdb7c9 -[PlugInManager loadPlugInsFromPath:] + 1938
5   com.panic.Coda2                 0x0000000107bdc43c -[PlugInManager loadPlugIns] + 165
6   com.panic.Coda2                 0x0000000107a5b0cd -[CodaDelegate applicationWillFinishLaunching:] + 2849
7   com.apple.CoreFoundation        0x00007fff97bd2eda _CFXNotificationPost + 2554
8   com.apple.Foundation            0x00007fff951f9796 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64
9   com.apple.AppKit                0x00007fff92bc64a4 -[NSApplication finishLaunching] + 331
10  com.apple.AppKit                0x00007fff92bc601a -[NSApplication run] + 124
11  com.apple.AppKit                0x00007fff92b6abd6 NSApplicationMain + 869
12  com.panic.Coda2                 0x00000001079c6034 start + 52

Webscript Sidebar - openFileAtPath does not focus the correct tab

When opening an already opend file through openFileAtPath, the selection in the tab bar does not change to the new file.

How to reproduce the issue:

  • Use a simple sidebar plugin to open a file:
    <button onclick="CodaTextView.openFileAtPath('path_to/file.a')">Open</button>
  • Open file.a in coda
  • Open another file.b in coda
  • Click on the button in the sidebar
  • file.a is shown in the editor but the tabbar shows file.b

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.