You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://code.visualstudio.com/)
17
17
18
+
🚀 **Excited to Present Version 1.0.4** 🚀
19
+
20
+
I am thrilled to announce version 1.0.4 of the Terminal Notes Utility! I'm going even further with exciting new features and improvements! 🎉
21
+
22
+
**Implemented Changes and Features:**
23
+
24
+
1.**Create Files**: Added `createFiles()` function to create the `term_notes` file in `~/.config` if it doesn't exist.
25
+
26
+
2.**Move Binary**: Implemented `moveBinaryToDestination()` to move the `term-notes` binary to `/usr/local/bin/` on Linux or `/usr/local/bin/` on macOS.
27
+
28
+
3.**Add Note**: Implemented `addNote()` function for adding a new note, storing its content in `notes.txt`, and providing options to edit it using `nano`, `vim`, or `neovim`.
29
+
30
+
4.**Edit Note**: Added `editNote()` function for editing an existing note, displaying a list of available notes, and choosing an editor (`nano`, `vim`, or `neovim`) to edit the selected note's content.
31
+
32
+
5.**Delete Note**: Implemented `deleteNote()` function to delete an existing note, showing a list of notes, and selecting one to delete.
33
+
34
+
6.**Delete All Notes**: Added `deleteAllNotes()` function to delete all existing notes from `notes.txt`.
35
+
36
+
7.**Show Note**: Implemented `showNote()` function for displaying the content of a specific note, requesting the note's ID, and showing its content if found.
37
+
38
+
8.**Show All Notes**: Added `showAllNotes()` function to display the content of all existing notes in `notes.txt`.
39
+
40
+
9.**Menus**: Created `showNotesMenu()` and `mainMenu()` functions to display the available options for managing notes and the main menu, respectively.
41
+
42
+
10.**Additional Settings**: Set appropriate permissions to make the generated binary executable (`chmod`).
43
+
44
+
**Call for Collaboration 🤝**
45
+
46
+
I am open to collaborating with engineers and developers on this project. Working together could lead to significant learning opportunities for all involved. If you are interested in contributing to the Terminal Notes Utility, feel free to reach out and join the team!
47
+
48
+
#### Changes Made for macOS and Linux Separation
49
+
50
+
To achieve compatibility with both macOS and Linux, the original term_notes.c file has been split into two separate files: term_notes_macos.c and term_notes_linux.c. This separation was necessary to address platform-specific system calls, dependencies, and path handling.
51
+
52
+
- term_notes_mac.c
53
+
The term_notes_macos.c file includes code that is specific to macOS. This version of the utility uses platform-specific libraries and functions for path handling, file management, and other system calls to ensure seamless execution on macOS.
54
+
55
+
- term_notes_linux.c
56
+
The term_notes_linux.c file contains code tailored to work on Linux systems. Similar to the macOS version, this file uses Linux-specific libraries and functions for path handling, file management, and other system interactions.
57
+
58
+
#### Compiling and Running the Utility
59
+
60
+
To compile the Notes Manager on macOS, use the following command:
61
+
62
+
```
63
+
gcc -o term-notes-macos src/term_notes_mac.c
64
+
```
65
+
66
+
And for Linux, use:
67
+
68
+
```
69
+
gcc -o term-notes-linux src/term_notes_linux.c
70
+
```
71
+
72
+
**Let's make note-taking from the terminal even better!** 📝
73
+
74
+
18
75

19
76
20
77
## Term-Notes Installer 🚀
@@ -31,6 +88,9 @@ Hey there! 👋 I'm excited to share that I successfully created a convenient Ba
31
88
32
89
By the way, we had some hurdles along the way. Homebrew didn't accept our project, but screw it! 😄 We persevered and made it happen, developing an easy-to-use installer with some cool ASCII ART!
33
90
91
+
#### UPDATES: Modification for macOS and Linux
92
+
The original script was enhanced to determine the user's operating system and download the appropriate C source file for compilation. The modification ensures that the Term-Notes utility is compiled with the correct C source file depending on the operating system.
93
+
34
94
#### To Install it:
35
95
To install Term-Notes, simply run the installer script available [here](https://github.com/felipealfonsog/TermNotes/raw/main/installer.sh).
36
96
@@ -119,6 +179,7 @@ For users on other Linux distributions and macOS, don't worry! You can still com
0 commit comments