Skip to content

eric1234/.textadept

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My personal Textadept config.

Installation

After clone install the 3rd party modules with:

cd ~/.textadept
./install_3rd_party_modules

Also set the EDITOR environment variable so Textadept can be used for editing files managed by a program (such as git commit messages or Rails encrypted credentials). On Mac that ENV variable should be set to:

export EDITOR="open -W -n -a Textadept.app --args -f"

While on Linux it should just be:

export EDITOR="textadept -f"

Customizations

General

  • 2 spaces not tabs
  • Don't assume what I was working on in the previous session is what I want to work on in the next session.
  • Visual indication of where 80 chars is.
  • Trim trailing spaces
  • Auto-close pair characters
  • Autoload changes from disk without asking
  • Treat Gemfile as a Ruby file
  • Menu hidden
  • Code folding disabled
  • Auto-populate find with current text
  • If on Mac then print function writes to file for easier debugging
  • Buffers are disabled. Opening a buffer replaces the current buffer and auto-closes the previous one.
  • Quick open includes files from all open projects and hides many common temp files. Also expands the number of allowed files.
  • Some snippets for common Ruby and JavaScript needs

Key customizations

On Mac, all "Ctrl" is instead "Cmd". I no longer develop on Mac so it's possible the Mac support is out-of-date.

  • Ctrl-P - Quick open. Old Alt-Ctrl-Shift-P still works but this is easier for such a common operation.
  • Ctrl-R - Recent files
  • Ctrl-Shift-R - Rename current file
  • Ctrl-Shift-" - Toggles the quote types of the current string
  • Alt-Ctrl-Shift-D - Delete current file
  • Alt-Ctrl-Shift-P - Copy path relative to root filesystem
  • Alt-Ctrl-P - Copy path relative to project root (repo root). If no root then operates the same as Atl-Ctrl-Shift-P

3rd Party

Format

Ctrl-Shift-J will reformat a paragraph even if in a code block.

Auto-complete

The auto-complete functionality is heavily customized.

  • It should not activate when in comments, text files or markdown.
  • It should only use terms from code and not comments.
  • It should auto-activate after three characters off a word.
  • It should auto-complete with terms in open files and snippets.
  • It will consider all open files when looking for terms.

Autosave

Anytime the focus is changed, buffer is switched or view is switched then all files are ensured they are saved to disk.

Contraction

If in a comment, text file or markdown file then the auto-close of pair characters is not done for quote characters to better support typing contractions in documentation.

Indent Match

The indention guides are disabled to reduce clutter but instead tooltips are replaced to show matching line content.

Widescreen

To support splitting on widescreen better the system allows you to operate on only vertical splits and gives each split a number. All splits take an even amount of space so as you add splits each existing one gets smaller.

  • Ctrl-Alt-# - Will open # of vertical splits. So if you currently have 3 and you input Ctrl-Shift-5 you will add two.
  • Ctrl-# - Switch to vertical split at #.
  • Ctrl-Shift-# - Swaps the current split with the split at #

About

My Textadept Config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published