Config to customize Textadept to act more like Atom/$ublime text
reback00 b2c73f343b Updates for Textadept 11.1 | %!s(int64=3) %!d(string=hai) anos | |
---|---|---|
assets | %!s(int64=5) %!d(string=hai) anos | |
backup | %!s(int64=5) %!d(string=hai) anos | |
lexers | %!s(int64=6) %!d(string=hai) anos | |
modules | %!s(int64=5) %!d(string=hai) anos | |
patches | %!s(int64=3) %!d(string=hai) anos | |
themes | %!s(int64=3) %!d(string=hai) anos | |
.gitignore | %!s(int64=6) %!d(string=hai) anos | |
LICENSE | %!s(int64=6) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos | |
init.lua | %!s(int64=3) %!d(string=hai) anos |
Yet another textadept config. This is especially made and tested for web development in php + html/css but hopefully could be dropped in to any use case. I have tried my best to make it similar to Atom/$ublime.
* Some features require patching and compiling. It should work without patches, but then those features will not be available. See patches
directory for details.
patches/README.md
.textadept
from repo to use without patched features.git clone --depth=1 https://notabug.org/reback00/ta-config.git ~/.textadept
or...
git clone --depth=1 https://notabug.org/reback00/ta-config.git
cd ta-config
mkdir -p ~/.textadept && cp -r {modules,themes,lexers,init.lua} ~/.textadept/
textadept
and it should run with this configFor dark interface:
Edit/create this file:
~/.gtkrc-2.0
(sometimes can be ~/.gtkrc-2.0.mine
depending on distro)textadept-install-folder\share\themes\MS-Windows\gtk-2.0\gtkrc
Textadept.app/Contents/Resources/share/themes/Gnome-Cupertino/gtk-2.0/gtkrc
with the following content:
style "custombg" {
bg[NORMAL] = "#555555"
fg[NORMAL] = "#BABABA"
}
widget "textadept*" style "custombg"
You can change the colors as you wish. bg[NORMAL]
is background color and fg[NORMAL]
is the text color in the interface. The color is in #BBGGRR format, not #RRGGBB.
Idea from here.
For some features to work:
Patch the source code and build. See, patches
directory for details.
Shortcut | Action |
---|---|
Ctrl+Tab | Switch between last used tabs. |
Ctrl+Shift+Tab | Open list of recent / recently closed files. |
Ctrl+Page up | Go to previous tab. |
Ctrl+Page Down | Go to next tab. |
Ctrl+Shift+K | Delete line(s). Supports multi selection, multi cursor. |
Ctrl+D | Duplicate line(s). Supports multi selection, multi cursor. |
Ctrl+P | Shows a list of possible commands. |
Ctrl+G | Go to a line. |
Ctrl+L | Select line(s). |
Ctrl+J | JavaDoc/PHPDoc comment. |
These events are introduced by the patched compile:
TAB_MIDDLE_CLICK
: Runs when a tab is middle clicked.TAB_MIDDLE_CLICK_BLANK
: Runs when middle clicked on blank space on tab bar.TAB_DOUBLE_CLICK_BLANK
: Runs when double clicked on blank space on tab bar.** Last tested in Textadept 10.8 under Linux 5.4 x86_64