Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A mirror for the textadept module ta-hastebin hosted in bitbucket
Lua
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE
README.md
config.ld
config.lua
dependencies.lua
init.lua
ul.lua

README.md

ta-hastebin

A simple Hastebin module for Textadept by Alejandro Baez.

DESCRIPTION

A quick little module that allows you to paste into a hastebin server. You can very easily copy an entire file or selections of a chunk you want to share by using the built in keyword shortcut. See the USAGE for more details.

DEPENDENCIES

Requires luasocket and luajson to run properly. If you have LuaDist installed, then the dependencies can be installed by running the following: lua ./dependencies.lua.

INSTALL

You can install by cloning the repository into your module path of textadept and renaming it to hastebin. This can easily be done like so:

cd <Textadept install path>/modules
hg clone https://bitbucket.org/a_baez/ta-hastebin hastebin

Afterwards, append into your textadept's init.lua file the following: require "hastebin"

Lastly go to the config.lua file supplied with the module and change the default url to the hastebin server of your choosing.

If you want to use your own keymapping, then call the module by typing local hb = require("hastebin") and define your keymap by typing something like this: keys[cac] = {hb}. At the same time, you may want to change the the default keymapping: DEFAULT_KEYS = true, to false in the client's config.lua file. This will disable the default keys.

USAGE

You can use the hastebin client by highlighting any chunk of code and running the default keymapped command ctrl+alt+c for Linux and Windows, or the Mac OS command ⌘+^+c. If you don't highlight any code and press the keyboard shortcut, then the module will take the entire file to paste into hastebin. You should now have the url copied to your clipboard to use, at your discretion.

Something went wrong with that request. Please try again.