6 Commits

Author SHA1 Message Date
Arthur Barraux ce94e9fb87 permission files
Build and Deploy Docs / build (push) Failing after 43s
2025-10-06 11:28:49 +02:00
Arthur Barraux 29a92ce904 Merge Lisp branch
Build and Deploy Docs / build (push) Failing after 1m24s
2025-10-05 22:05:21 +02:00
Arthur Barraux 72178adebb submodeule update 2025-06-12 16:56:10 +02:00
Arthur Barraux 7a98f89531 readme update 2025-06-12 16:53:21 +02:00
Arthur Barraux 3e562c1071 add blisp submodule 2025-06-02 10:36:22 +02:00
Arthur Barraux bff3f84ecd Configurable settings with blisp 2025-06-02 10:31:31 +02:00
8 changed files with 90 additions and 84 deletions
+4 -4
View File
@@ -4,17 +4,17 @@ Beluga is a project of CLI text editor that will fit perfectly with your azerty
## Requirements ## Requirements
You will only need **make** or **gcc** to compile the editor. You will only need **cmake** and **clang** to compile the editor.
## Installation ## Installation
Here is the installation line : Here is the installation line for development version:
```git clone --branch V1.0 --single-branch https://github.com/le-cocotier/beluga.git ~/.beluga && cd ~/.beluga && make build``` ```git clone --recurse-submodules https://github.com/le-cocotier/beluga.git ~/.beluga && cd ~/.beluga && mkdir build && cd build && cmake ../ && make beluga```
The executable file will be in `bin/beluga`. Feel free to add it to your path. The executable file will be in `bin/beluga`. Feel free to add it to your path.
You can either run `make all` if you're interested by the doxygen documentation. You can either run `make all` or `make doc_doxygen` if you're interested by the doxygen documentation.
## Getting start ## Getting start
+2
View File
@@ -68,6 +68,7 @@ struct editorConfig {
struct keyBind_t* key_binds; struct keyBind_t* key_binds;
int number_of_keybinds; int number_of_keybinds;
}; };
/** /**
@@ -82,4 +83,5 @@ struct abuf {
extern struct editorConfig E; extern struct editorConfig E;
#endif #endif
+1 -1
View File
@@ -24,6 +24,6 @@ enum editorKey {
#define ABUF_INIT {NULL, 0} #define ABUF_INIT {NULL, 0}
#define BELUGA_VERSION "1.0" #define BELUGA_VERSION "1.1"
#endif // DEFINE_H_ #endif // DEFINE_H_
+1
View File
@@ -1,6 +1,7 @@
#ifndef INIT_H_ #ifndef INIT_H_
#define INIT_H_ #define INIT_H_
#include "builtins.h"
#include "data.h" #include "data.h"
#include "terminal.h" #include "terminal.h"
#include <stdio.h> #include <stdio.h>
+1
View File
@@ -5,6 +5,7 @@
#include "define.h" #include "define.h"
#include "output.h" #include "output.h"
#include "terminal.h" #include "terminal.h"
#include "builtins.h"
#include <unistd.h> #include <unistd.h>
// KEYS keycode // KEYS keycode
+3 -1
View File
@@ -5,7 +5,8 @@
* interactions. \version 0.1 \date 21 septembre 2024 * interactions. \version 0.1 \date 21 septembre 2024
*/ */
#include <stdio.h> #include <unistd.h>
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#define _BSD_SOURCE #define _BSD_SOURCE
#define _GNU_SOURCE #define _GNU_SOURCE
@@ -32,6 +33,7 @@ int main(int argc, char *argv[]) {
editorSetStatusMessage("HELP: Ctrl-S = save | Ctrl-Q = quit"); editorSetStatusMessage("HELP: Ctrl-S = save | Ctrl-Q = quit");
while (1) { while (1) {
editorRefreshScreen(); editorRefreshScreen();
editorProcessKeypress(); editorProcessKeypress();
+1 -1
View File
@@ -1,5 +1,5 @@
project('beluga', 'c', project('beluga', 'c',
version : '1.0.0', version : '1.1',
default_options : [ default_options : [
'c_std=none', 'c_std=none',
] ]
+1 -1
View File
@@ -49,7 +49,6 @@ void editorCloseFile(void) {
E.filename = NULL; E.filename = NULL;
E.status_msg[0] = '\0'; E.status_msg[0] = '\0';
E.status_msg_time = 0; E.status_msg_time = 0;
} }
void editorOpen(char *filename) { void editorOpen(char *filename) {
@@ -58,6 +57,7 @@ void editorOpen(char *filename) {
// Test if a file is already open // Test if a file is already open
if (E.filename != NULL) { if (E.filename != NULL) {
editorCloseFile(); editorCloseFile();
E.state = READ_AND_WRITE;
} }
free(E.filename); free(E.filename);