Git Product home page Git Product logo

sublime-text-irc's Introduction

sublime-text-irc

IRC client for Sublime Text 3

Introduction

This is a very alpha IRC plugin for Sublime Text 3, inspired by Emacs IRC clients such as ERC. Although there are obviously much better clients in the form of Adium, Limechat, et. al., there are many advantages to having IRC built into your text editor. The goal here is to be automatically connected to a particular channel when working on a specific project.

Installation

In the Packages directory:

git clone https://github.com/markbirbeck/sublime-text-irc.git IRC

Using the IRC Command

To create an IRC buffer run the IRC command with a list of connection settings:

view.run_command("irc", {"server": "irc.freenode.net", "target": "#sublimetext"})

To wire a command into the Command Palette edit your Preferences > Package Settings > IRC > Commands - User file. You can find some examples in the Commands - Default file.

Using the IRC client

Any time [ENTER] is pressed commands are submitted to the selected IRC server. If no text is selected and the cursor is simply on the last line of the buffer then the whole line is sent, without the prompt. If any text is selected then in keeping with the spirit of Sublime, each selection is submitted as its own command.

Improving the IRC Client

There's lots of scope for improvement!

New feature requests, bugs and of course pull requests will all be managed via the issue-tracker.

Code is formatted with PEP8 with E501 turned off (i.e., the default settings for SublimeLinter).

GitFlow is used for branching and preparing releases.

Architecture

The client tries to fit in with Sublime Text's architecture as much as possible. So for example, an IRC window is simply a document with the IRC syntax type, which is how things like user names and status messages get their appearance.

Limitations

The main limitation is that the prompt is not protected! If you type over it then the plugin won't be able to find the end of the buffer and therefore won't know where to insert text. It should be straightforward to fix, but for now just watch those backspaces.

Acknowledgements

Making use of the excellent Python IRC library from Joel Rosdahl and Jason R. Coombs.

Changelog

2013-07-29

  • Added /join and message command
  • Added message autoscroll
  • Added optional support for Growl

2013-07-25 (v0.3)

  • Add /nick, /quit and /connect commands. (@Mimieam)
  • Add optional timestamp to messages. (@Mimieam)
  • Improve syntax highlighting.

2013-07-02 Some README changes. (v0.2)

2013-07-02 Initial release. (v0.1)

sublime-text-irc's People

Contributors

markbirbeck avatar

Watchers

A. Miezan Echis avatar James Cloos avatar

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.