From a279eb708d899be305abba1a389f0e0aa7a36209 Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Fri, 19 Oct 2018 13:36:54 +0200 Subject: [PATCH] Move all files to a source folder --- Makefile | 14 -------------- README | 31 +++++++++++++++++++++++++++++++ fn | Bin 28848 -> 0 bytes src/Makefile | 19 +++++++++++++++++++ file.c => src/file.c | 0 file.h => src/file.h | 0 fn.c => src/fn.c | 0 fn.h => src/fn.h | 0 hl.c => src/hl.c | 0 hl.h => src/hl.h | 0 input.c => src/input.c | 0 input.h => src/input.h | 0 output.c => src/output.c | 0 output.h => src/output.h | 0 row.c => src/row.c | 0 row.h => src/row.h | 0 search.c => src/search.c | 0 search.h => src/search.h | 0 terminal.c => src/terminal.c | 0 terminal.h => src/terminal.h | 0 20 files changed, 50 insertions(+), 14 deletions(-) delete mode 100644 Makefile create mode 100644 README delete mode 100755 fn create mode 100644 src/Makefile rename file.c => src/file.c (100%) rename file.h => src/file.h (100%) rename fn.c => src/fn.c (100%) rename fn.h => src/fn.h (100%) rename hl.c => src/hl.c (100%) rename hl.h => src/hl.h (100%) rename input.c => src/input.c (100%) rename input.h => src/input.h (100%) rename output.c => src/output.c (100%) rename output.h => src/output.h (100%) rename row.c => src/row.c (100%) rename row.h => src/row.h (100%) rename search.c => src/search.c (100%) rename search.h => src/search.h (100%) rename terminal.c => src/terminal.c (100%) rename terminal.h => src/terminal.h (100%) diff --git a/Makefile b/Makefile deleted file mode 100644 index 192a0d1..0000000 --- a/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -kilo: fn.c terminal.c - $(CC) fn.c terminal.c output.c row.c hl.c search.c file.c input.c -o fn \ - -Wall \ - -Wextra \ - -Wbad-function-cast \ - -Wcast-align \ - -Wcast-qual \ - -Wmissing-declarations \ - -Wnested-externs \ - -Wpointer-arith \ - -Wwrite-strings \ - -Wno-discarded-qualifiers \ - -pedantic \ - -std=c99 diff --git a/README b/README new file mode 100644 index 0000000..9bc41bb --- /dev/null +++ b/README @@ -0,0 +1,31 @@ +# FuNote + +This is a sinple (mostly) POSIX complaint terminal text editor, which +should be working on all common (and not so common) VT100 compatible +terminal emulators. + +## Features + +* Load/Save/create text files +* Common keyboard controls +* Search +* Syntax Highlighting + +## Compile + + $ cd src + $ make + $ ./fn + +## TODO + +* ISO8859-15 or UTF-8 files and input +* Line numbers +* Soft wrap lines +* Add a .fnrc file to store/read configuration + +## Author + +Aaron Fischer () +https://aaron-fischer.net/ + diff --git a/fn b/fn deleted file mode 100755 index 82c13dcbd58afdf74b6fdd39751ad252c95031bc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 28848 zcmeHwdwf*Y_3xe}hj%jJ5r{x#K&U(RKPU+%}vV8v3a+xc0`ByBMeHQ9hT-=TiAJY*!W2P`8iN(cfCtzO^ZCV1&B~ zh{b&GfvR{>^qRk%(hCcuz`_DICp2tOt&IkULkq@QGOSW(O+QGY8_FnDPvR zFWRs0AGcn}JlyrEcR&2b^Vd;c{fFegePtlius)>gKGztBIB=iAE^#4~9`P-7v zpH4#mY7+WYN$6K3p_eD2A4@|2VG?>{68d{d=&vWClRNii|C?Y>7kG)+w?XJjo`!c{ z^q(Z5&q_k4;oO&=SCY`rB%ueB(1#?U4^Bd#mV`b$iNBpnB0naH{AZKMznO%7dlLFD zlh6g?K^YDId17Ntt+!hE{B_l3RkdQHzb;T+R_gZ>rLJsqov8KJ)z#FAl9CEvO<7)E ziO*M7TD?*DDmGP@RtkSbl~>exODijD$|y^Dpq4--R91Pbd|p3c_#gS9r@E#Da;5%? znrh)M1Gm%<7P6O%Exzj7x{7N5M#@)KyIpK7tE};PMU_-tQc~vMUh6H{Kng@fO_{%v zG*bmPdHo1#UMNJ06+%N*%@%F~wFz>%4b%3l6uxwjt z30l6b!Y^)EwzQzIWLD1XSnAqXYUZ3+a#qe<~Piz}_kU#(xw|NiOXZWNB)1 zKmslzbo?J)QISqFstZJ-jbc1aOjY=U_kSJJN~)Nn@WAMbfmEYKqy$&j%JmFs?$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BZH<*S`kE2Yky> zQ0XT63jYQl0tbDeAFad}`js4yMmTa!B}Rt&zJI*J*!y{jWZ0DcRe*Rh|EmY_q;eQQ z{$mI6bo)OH5YJKn@<2SXryo?C3J@$fFnPD(H83B-I`z)l<%KF@s|-EE690xmUn;3v z*Vd@mLT=#Uct~!|uaL#(0Tutp)8hUSg&x*y-GlHQ*&9@4k>lH5+^HJs?fwZX*xrTzZL_mWi(%j?QZ~;@)t;U?72d%64cK@DgQ|PCFZ{uH1a8BuGsU3Ch8Pi zqa=vksVw^y0%FgvpHsA}{BGSal_@g;KA4bS?_)F7!QS7s0TS{lRD3fbf9$!3I$#{A z1r*qmTD?!AiKVyCz1SX zB#7O0b?i|4ZcGS?!z#a9jU$?8uEn2jw~n7QK6KrYj9p#pW%A1^j%kK2SK~vG=qvy2 Po23MOX~TXcpyGc6FvWBk diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..fc2c4ff --- /dev/null +++ b/src/Makefile @@ -0,0 +1,19 @@ +CFLAGS = -Wall \ + -Wextra \ + -Wbad-function-cast \ + -Wcast-align \ + -Wcast-qual \ + -Wmissing-declarations \ + -Wnested-externs \ + -Wpointer-arith \ + -Wwrite-strings \ + -Wno-discarded-qualifiers \ + -pedantic \ + -std=c99 +SRC=$(wildcard *.c) + +clean: + rm -f fn + +fn: $(SRC) + $(CC) -o $@ $^ $(CFLAGS) diff --git a/file.c b/src/file.c similarity index 100% rename from file.c rename to src/file.c diff --git a/file.h b/src/file.h similarity index 100% rename from file.h rename to src/file.h diff --git a/fn.c b/src/fn.c similarity index 100% rename from fn.c rename to src/fn.c diff --git a/fn.h b/src/fn.h similarity index 100% rename from fn.h rename to src/fn.h diff --git a/hl.c b/src/hl.c similarity index 100% rename from hl.c rename to src/hl.c diff --git a/hl.h b/src/hl.h similarity index 100% rename from hl.h rename to src/hl.h diff --git a/input.c b/src/input.c similarity index 100% rename from input.c rename to src/input.c diff --git a/input.h b/src/input.h similarity index 100% rename from input.h rename to src/input.h diff --git a/output.c b/src/output.c similarity index 100% rename from output.c rename to src/output.c diff --git a/output.h b/src/output.h similarity index 100% rename from output.h rename to src/output.h diff --git a/row.c b/src/row.c similarity index 100% rename from row.c rename to src/row.c diff --git a/row.h b/src/row.h similarity index 100% rename from row.h rename to src/row.h diff --git a/search.c b/src/search.c similarity index 100% rename from search.c rename to src/search.c diff --git a/search.h b/src/search.h similarity index 100% rename from search.h rename to src/search.h diff --git a/terminal.c b/src/terminal.c similarity index 100% rename from terminal.c rename to src/terminal.c diff --git a/terminal.h b/src/terminal.h similarity index 100% rename from terminal.h rename to src/terminal.h