Skip to content

Tacklebox/bric

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bric

bric is a text editor based on kilo.

bric does not depend on any library (not even curses). It uses fairly standard VT100 (and similar terminals) escape sequences to write and read to and from the terminal.

My blog post

Here is a screencast of bric on Linux:

Screencast

Installation:

git clone https://github.com/shnupta/bric
cd bric
make
make install

Usage:

If you have performed a make install then just bric <filename>. It can be a new or existing filename.

Shortcuts:

Ctrl-Q - Quit 
Ctrl-S - Save 
Ctrl-F - Find 
Ctrl-R - Find and Replace
Ctrl-G - Goto
Ctrl-D - Enter selection mode
    Arrows - Select text
    Ctrl-C - Copy Selection
    ESC - Back to Editing mode
Ctrl-V - Paste selection (in editor clipboard)
Arrow Keys - Move

Config file: bric is customizable from a configuration file - ~/.bricrc

Here is an example config file:

set linenumbers true
set indent true

set hl_comment_colour 33
set hl_mlcomment_colour 33
set hl_keyword_cond_colour 36
set hl_keyword_type_colour 32
set hl_keyword_pp_colour 34
set hl_keyword_return_colour 35
set hl_keyword_adapter_colour 94
set hl_keyword_loop_colour 36
set hl_string_colour 31
set hl_number_colour 34
set hl_match_colour 101
set hl_background_colour 49
set hl_default_colour 37

Note: Not all options have to be set. The ones shown above are the colours (however indent maintaining and linenumbers are not)

Todo:

  • Git integration
  • More language syntax highlighting
  • More shortcuts
  • Yank & paste lines
  • Jump to beginning of line
  • Soft/hard wrap lines
  • Auto indent (partially done)

Contribution:

I'm completely open to anyone forking and helping build features of the editor so go ahead and make a PR!

Bugs and feedback:

To submit any bugs or give feedback please add an issue on this repo.

References:

About

bric is a text editor based on kilo.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 99.8%
  • Makefile 0.2%