Skip to content

Instantly share code, notes, and snippets.

@leslie-leder
Last active November 20, 2015 09:27
Show Gist options
  • Save leslie-leder/d29b2446723947ec5b17 to your computer and use it in GitHub Desktop.
Save leslie-leder/d29b2446723947ec5b17 to your computer and use it in GitHub Desktop.
Textadept
-- ~/.textadept/find.lua
-- Fill the find field with the current buffer selection
--
-- Thanks to Mitchell and Niklas W from [email protected]
keys.cf = function()
local s = buffer.selection_start
local e = buffer.selection_end
if s ~= e then
ui.find.find_entry_text = buffer:text_range(s, e)
end
ui.find.focus()
end
-- ~/.textadept/init.lua
ui.set_theme('light')
textadept.file_types.extensions.gradle = 'groovy'
--means control+h whereas cH means control+shift+h
keys.ch = textadept.editing.highlight_word
-- import the find.lua
require('find')
#/usr/local/share/applications/textadept.desktop
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Textadept
Comment=Editor
Exec=/opt/textadept/textadept %U
Icon=/opt/textadept/core/images/ta_256x256.png
Terminal=false
Categories=Utilities;Accessories;Programming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment