Skip to content
Dextrous text editor
C Makefile Other
Find file
Failed to load latest commit information.
Documentation Document \uXXXX and \uXXXXXXXX inside double quoted strings Feb 22, 2015
share Fix XML syntax file to highlight tag names according to the standard Aug 19, 2014
.gitignore Add test program Aug 19, 2012
COPYING curl http://www.gnu.org/licenses/gpl-2.0.txt > COPYING Apr 11, 2014
FAQ Use ncurses to read terminal capabilities Nov 2, 2014
Makefile v1.0 Apr 28, 2015
Makefile.lib Split confusing macro Jun 12, 2012
README.md Use ncurses to read terminal capabilities Nov 2, 2014
alias.c Add streq() and use it instead of strcmp() Oct 29, 2012
alias.h Move alias code to alias.[ch] Apr 10, 2010
bind.c Rewrite key input May 29, 2014
bind.h Rewrite key input May 29, 2014
block.c Replace lines_changed() with buffer_mark_lines_changed() Apr 16, 2013
block.h Use long instead of unsigned int for buffer sizes, offsets etc. Oct 27, 2012
buffer-iter.c Use long instead of unsigned int for buffer sizes, offsets etc. Oct 27, 2012
buffer.c Replace lines_changed() with buffer_mark_lines_changed() Apr 16, 2013
buffer.h Replace lines_changed() with buffer_mark_lines_changed() Apr 16, 2013
cconv.c Fix some format specifier and mismatched type warnings Aug 31, 2013
cconv.h Add iconv wrapper Oct 2, 2012
change.c Define enum selection and struct view in view.h Apr 7, 2013
change.h Split buffer_delete_bytes() into two functions Oct 27, 2012
cmdline.c Rewrite key input May 29, 2014
cmdline.h Rewrite key input May 29, 2014
color.c Add italic attribute May 25, 2014
color.h Use bool type Oct 27, 2012
command-mode.c Rewrite key input May 29, 2014
command.h Change command parser to return error instead of printing it Apr 1, 2013
commands.c Remove redundant windows array Mar 6, 2015
common.c Move count_nl() to common.c Apr 16, 2013
common.h do_collect_files: Don't assume dirprefix has trailing slash Apr 26, 2014
compiler.c Set REG_EXTENDED flag in regexp_compile() Nov 3, 2012
compiler.h Validate compiler error formats as soon as possible Nov 3, 2012
completion.c collect_files: Use path_dirname() and path_basename() Apr 26, 2014
completion.h Move completion.c prototypes to completion.h Apr 15, 2010
config.c gbuf: Don't keep buffer NUL-terminated Apr 21, 2014
config.h Use bool type Oct 27, 2012
ctags.c Search tag files from parent directories too Apr 26, 2014
ctags.h Search tag files from parent directories too Apr 26, 2014
ctype.c Add hex_decode() and isxdigit() Jan 19, 2011
ctype.h Add hex_decode() and isxdigit() Jan 19, 2011
cursed.c Use ncurses to read terminal capabilities Nov 2, 2014
cursed.h Use ncurses to read terminal capabilities Nov 2, 2014
decoder.c Add streq() and use it instead of strcmp() Oct 29, 2012
decoder.h Use bool type Oct 27, 2012
detect.c Use streq() instead of strcmp() Apr 4, 2013
detect.h Add detect-indent option Nov 2, 2012
edit.c Rename gbuf_add_ch() to gbuf_add_byte() and add unicode aware gbuf_ad… Apr 21, 2014
edit.h case: Remove -m flag Oct 29, 2012
editor.c Remove redundant windows array Mar 6, 2015
editor.h Don't set input_mode directly May 4, 2013
encoder.c Use streq() instead of strcmp() Apr 4, 2013
encoder.h Use cconv in file_encoder Oct 2, 2012
encoding.c Add streq() and use it instead of strcmp() Oct 29, 2012
encoding.h Headers should include as little as possible May 17, 2012
env.c Simplify env.c Apr 20, 2013
env.h Simplify env.c Apr 20, 2013
error.c Add struct error Mar 17, 2013
error.h Add struct error Mar 17, 2013
file-history.c Increase file history size Apr 28, 2015
file-history.h Use bool type Oct 27, 2012
file-location.c Use less global window, view and buffer Apr 16, 2013
file-location.h Cleanup Apr 16, 2013
file-option.c Don't use global buffer in file-option.c Apr 16, 2013
file-option.h Don't use global buffer in file-option.c Apr 16, 2013
filetype.c Use streq() instead of strcmp() Apr 4, 2013
filetype.h Use bool type Oct 27, 2012
fork.c close_on_exec() does not need to be inline May 17, 2012
fork.h close_on_exec() does not need to be inline May 17, 2012
format-status.c Allow "%Y" in statusline format for displaying total number of lines Aug 31, 2013
format-status.h Status line formatting cleanup May 4, 2013
frame.c Remove redundant windows array Mar 6, 2015
frame.h Add new_root_frame() Apr 5, 2013
gbuf.c Remove obsolete comment Apr 28, 2014
gbuf.h Fix compile warning Apr 28, 2014
git-open.c Rewrite key input May 29, 2014
git-open.h Rewrite key input May 29, 2014
history.c Change ptr_array_remove() to take pointer argument Apr 1, 2013
history.h Use bool type Oct 27, 2012
hl.c Change syntax highlighter to not use global buffer Apr 7, 2013
hl.h Change syntax highlighter to not use global buffer Apr 7, 2013
indent.c Define enum selection and struct view in view.h Apr 7, 2013
indent.h Use bool type Oct 27, 2012
input-special.c Rewrite key input May 29, 2014
input-special.h Rewrite key input May 29, 2014
iter.c Replace buffer_get_bytes() with block_iter_get_bytes() Apr 16, 2013
iter.h Replace buffer_get_bytes() with block_iter_get_bytes() Apr 16, 2013
key.c Rewrite key input May 29, 2014
key.h Rewrite key input May 29, 2014
libc.h Use bool type Oct 27, 2012
list.h Use offsetof() defined in stddef.h May 8, 2012
load-save.c Prefix temporary filenames with ".tmp." Sep 9, 2015
load-save.h Change save_buffer() to not use global buffer Apr 16, 2013
lock.c Fix crash when lock file doesn't exist Sep 6, 2013
lock.h Optional per-user file locking Jan 11, 2009
main.c Remove redundant windows array Mar 6, 2015
modes.c Add git-open command Jul 14, 2012
modes.h Rewrite key input May 29, 2014
move.c word-bwd, word-fwd: Stop at newline Feb 7, 2015
move.h Use less global variables Apr 16, 2013
msg.c Add ptr_array_free_cb() Mar 4, 2015
msg.h Cleanup Apr 16, 2013
normal-mode.c Rewrite key input May 29, 2014
obuf.c Remove broken latin1 terminal support Mar 9, 2013
obuf.h Use long instead of unsigned int for buffer sizes, offsets etc. Oct 27, 2012
options.c Replace show-tab-bar and vertical-tab-bar with tab-bar option Mar 7, 2014
options.h Replace show-tab-bar and vertical-tab-bar with tab-bar option Mar 7, 2014
parse-args.c Add streq() and use it instead of strcmp() Oct 29, 2012
parse-args.h Move count_strings() to common.c Nov 12, 2010
parse-command.c Rename gbuf_add_ch() to gbuf_add_byte() and add unicode aware gbuf_ad… Apr 21, 2014
path.c Add path_dirname() Apr 26, 2014
path.h Add path_dirname() Apr 26, 2014
ptr-array.c Add ptr_array_free_cb() Mar 4, 2015
ptr-array.h Add ptr_array_free_cb() Mar 4, 2015
regexp.c Assume regex passed to regexp_match_nosub() and regexp_match() is valid Nov 4, 2012
regexp.h Assume regex passed to regexp_match_nosub() and regexp_match() is valid Nov 4, 2012
run.c Change command parser to return error instead of printing it Apr 1, 2013
screen-tabbar.c Replace show-tab-bar and vertical-tab-bar with tab-bar option Mar 7, 2014
screen-view.c Add view parameter to init_selection() Apr 16, 2013
screen.c Remove redundant windows array Mar 6, 2015
screen.h Don't use global buffer in update_term_title() Apr 16, 2013
search-mode.c Rewrite key input May 29, 2014
search.c Rename gbuf_add_ch() to gbuf_add_byte() and add unicode aware gbuf_ad… Apr 21, 2014
search.h Move code to file-location.c Mar 17, 2013
selection.c Replace get_selection() with view_get_selection() Apr 16, 2013
selection.h Replace get_selection() with view_get_selection() Apr 16, 2013
spawn.c Make it obvious that buffer returned bu gbuf_steal() isn't NUL-termin… Apr 26, 2014
spawn.h int to long changes Oct 27, 2012
state.c Add path_basename() Apr 26, 2014
state.h Use bool type Oct 27, 2012
syntax.c Add ptr_array_free_cb() Mar 4, 2015
syntax.h Use bool type Oct 27, 2012
tabbar.c Use less global window, view and buffer Apr 16, 2013
tabbar.h Make first_tab_idx window specific Apr 24, 2011
tag.c Search tag files from parent directories too Apr 26, 2014
tag.h Search tag files from parent directories too Apr 26, 2014
term-caps.c Use xnew() instead of malloc() Mar 4, 2015
term.c Use ncurses to read terminal capabilities Nov 2, 2014
term.h Use ncurses to read terminal capabilities Nov 2, 2014
test-main.c Use streq() instead of strcmp() Apr 4, 2013
uchar.c Use long instead of unsigned int for buffer sizes, offsets etc. Oct 27, 2012
uchar.h Use long instead of unsigned int for buffer sizes, offsets etc. Oct 27, 2012
unicode.c Use bool type Oct 27, 2012
unicode.h Use bool type Oct 27, 2012
update-option Force recompile if datadir or compiler flags change Nov 5, 2010
vars.c Move build configuration to vars.c Nov 10, 2010
view.c Use less global window, view and buffer Apr 16, 2013
view.h Replace get_word_under_cursor() with view_get_word_under_cursor() Apr 16, 2013
wbuf.c Rename util.c to common.c and move prototypes to common.h Nov 12, 2010
wbuf.h Move wbuf_*() to wbuf.c Mar 14, 2010
window.c Remove redundant windows array Mar 6, 2015
window.h Remove redundant windows array Mar 6, 2015
xmalloc.c Rename macros starting with underscore May 9, 2012
xmalloc.h Rename macros starting with underscore May 9, 2012

README.md

dex

Dextrous text editor

Copyright 2010 Timo Hirvonen tihirvon@gmail.com

Introduction

dex is a small and easy to use text editor. Colors and bindings can be fully customized to your liking.

It has some features useful to programmers, like ctags support and it can parse compiler errors, but it does not aim to become an IDE.

Installation

The only dependencies are libc and ncurses.

To compile this program you need GNU make and a modern C-compiler (tested with gcc and clang).

You need to specify all options for both make and make install. Alternatively you can put your build options into a Config.mk file.

make prefix=$HOME
make prefix=$HOME install

The default prefix is /usr/local and DESTDIR works as usual. See the top of the Makefile for more information.

Something went wrong with that request. Please try again.