Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

simple performant text editor in c++ and lua

License

NotificationsYou must be signed in to change notification settings

aki237/tide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I have implemented a text editor in Go..... But apparently Gtk+ hates the Go GC.So decided to re write the whole project in C++ but using FLTK (Cross platform).I think I have documented the code to some extent. Currently makefile is written forLinux. Should work in unix like platforms using X11.

Requirements

Following libraries and tools are required for building tide and it's dependancies.

Tools

  • cmake
  • GNUmake
  • Any working compiler toolchain supporting C++ 14 standard
    • GNU Compiler Collection (gcc) > 4.9
    • Clang Compiler (clang) > 3.4

Libraries

  • autotools
  • autotools additional macros for X11 and others.
  • Xlib, Xcb, Xft, Xcursor, Xinerama, Xext, Xau, Xdmcp, libgraphite libs and headers
  • FreeType, Harfbuzz.
  • libstdc++
  • Cairo

If you are using any kind of GUI in X11 most of these libraries must be installed already in your system.Just install thedevel packages of those packages from your distro.

Building

Clone the source, update submodules and build the source as following.

git clone https://github.com/aki237/tide.gitcd tidegit submodule initgit submodule updatemake

This will pull all the dependancies from the git repo sources and build them.Following are built during the process:

  • libclipboard - For Cross platform Clipboard purposes
  • lua - Lua Embeddable Scripting library
  • sol2 - The Direct C++ to Lua binding.
  • fltk - Cross Platform Fast and Light Tool Kit

and the needed static libraries will be installedinstall directory in the root.

For documentation run this

make doc

For cleaning the source directory.Note : This also cleans the doc directory.

make clean

All the docs will be stored in the docs directory. Every class (.cpp,.hpp) have been mentioned in the docs.Currently the editor doesn't do much than moving around, typing, selection, line number, line highlight. etc.,(only keyboard sorry because the text editing component is wholly written from scratch in Cairo Vector Drawing.)Soon this will evolve into a normal notepad with all necessary utils (Save,Copy,Paste, Find&Replace).I have already tested a lua embeding (Why Lua ? : lightweight) for this with which plugins can be written.Any thoughts and help is welcome. Currently It only consumes only a little under 2 Megs of RAM.

Lua plugin system is not yet ready. It is added for just demo purposes. The function calls may change in the future.

About

simple performant text editor in c++ and lua

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp