Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fa7f8d39d8 | |||
| 23036cf3d3 | |||
| d0afd4f304 |
+4
-4
@@ -9,12 +9,12 @@
|
|||||||
#----------------------------------------------------------##
|
#----------------------------------------------------------##
|
||||||
#=--------------------------------------------------------------##
|
#=--------------------------------------------------------------##
|
||||||
+--------------------------+@#-%*-----------------------------------#*
|
+--------------------------+@#-%*-----------------------------------#*
|
||||||
+--------------------------%@@@@#-------------------------------------** BELUGA - VERSION 1.1
|
+--------------------------%@@@@#-------------------------------------** BELUGA - VERSION 2.2.1
|
||||||
*-=-------------------------#@@*---------------------------------------=%
|
*-=-------------------------#@@*---------------------------------------=%
|
||||||
%*#==--------------------------------------------------------------------+# ----- KEY-BINDS -----
|
%*#==--------------------------------------------------------------------+# ----- KEY-BINDS -----
|
||||||
*%%=-=--------------------------------------------------------------------=# CTRL-q leave
|
*%%=-=--------------------------------------------------------------------=# CTRL-x CTRL-c leave
|
||||||
%=--------------------------------------------------------------------------#* CTRL-s save
|
%=--------------------------------------------------------------------------#* CTRL-x CTRL-s save
|
||||||
%-----------------------------------------------------------------------------** CTRL-o open-file
|
%-----------------------------------------------------------------------------** CTRL-x f open-file
|
||||||
*+--=---===----=---------------=*-----------------------------------------------**
|
*+--=---===----=---------------=*-----------------------------------------------**
|
||||||
#--=## *#%#*+==----==+**+----------------------= ***=---------------------%
|
#--=## *#%#*+==----==+**+----------------------= ***=---------------------%
|
||||||
*%**=-----------==== ==---------------------------------=+#+-----------------=#
|
*%**=-----------==== ==---------------------------------=+#+-----------------=#
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ echo "Create config files ..."
|
|||||||
mkdir -pv ~/.beluga/
|
mkdir -pv ~/.beluga/
|
||||||
cp -rv ./assets/ ~/.beluga/
|
cp -rv ./assets/ ~/.beluga/
|
||||||
mkdir -pv ~/.beluga/packages/
|
mkdir -pv ~/.beluga/packages/
|
||||||
|
mkdir -pv ~/.beluga/config/
|
||||||
|
|
||||||
read -p "Do you want to replace your config file or keep it (init.lisp.bak) / (init.lisp.new) ? (Y/n)" confirm
|
read -p "Do you want to replace your config file or keep it (init.lisp.bak) / (init.lisp.new) ? (Y/n)" confirm
|
||||||
if [[ "$confirm" =~ ^[Yy]$ ]]; then
|
if [[ "$confirm" =~ ^[Yy]$ ]]; then
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ void editorCloseFile(void) {
|
|||||||
free(E.row[i].render);
|
free(E.row[i].render);
|
||||||
}
|
}
|
||||||
E.numrows = 0;
|
E.numrows = 0;
|
||||||
|
free(E.row);
|
||||||
E.row = NULL;
|
E.row = NULL;
|
||||||
E.dirty = 0;
|
E.dirty = 0;
|
||||||
free(E.filename);
|
free(E.filename);
|
||||||
|
|||||||
+2
-4
@@ -50,7 +50,7 @@ const char *file_completion(const char *path) {
|
|||||||
if (last_slash) {
|
if (last_slash) {
|
||||||
dir_len = last_slash - path + 1; // length of dir_path
|
dir_len = last_slash - path + 1; // length of dir_path
|
||||||
strncpy(directory, path, dir_len);
|
strncpy(directory, path, dir_len);
|
||||||
predict_len = strlen(path) - dir_len - 1;
|
predict_len = strlen(path) - dir_len;
|
||||||
strncpy(predict, last_slash + 1, predict_len);
|
strncpy(predict, last_slash + 1, predict_len);
|
||||||
directory[dir_len] = '\0';
|
directory[dir_len] = '\0';
|
||||||
predict[predict_len] = '\0';
|
predict[predict_len] = '\0';
|
||||||
@@ -73,9 +73,7 @@ const char *file_completion(const char *path) {
|
|||||||
strcat(full_path, "/"); // add slash for directories
|
strcat(full_path, "/"); // add slash for directories
|
||||||
}
|
}
|
||||||
closedir(dir);
|
closedir(dir);
|
||||||
dir = NULL;
|
|
||||||
free(entry);
|
|
||||||
|
|
||||||
return strdup(full_path);
|
return strdup(full_path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user