Hello there! Welcome to your new little editing buddy, built with Go and the amazing Charm libraries (Bubble Tea, Bubbles, and Lipgloss)! π It's a cozy little spot right in your terminal for editing text files.
- Jot down your thoughts: Basic text editing fun! π
- Peek at files: A handy file browser panel shows you what's nearby. π
- Open Sesame: Pop open files from the browser with
Enter! π - Save Your Treasures: Don't lose your work!
Ctrl+Ssaves the day. πΎ - Seek and Find: Lost some text?
Ctrl+Fhelps you search! π - Magic Jumps: See exactly where your search term is hiding (by line number) and zap!
Entertakes you right there! β¨ - Hop Around: Easily switch focus between the editor, files, and search results with
Tab. π - Handy Hints: A little status bar tells you the filename, format, save status, and useful key hints. βΉοΈ
- Pretty Colors: Styled with love using Lipgloss for a pleasant look! π¨
Just need Go (version 1.18+ is lovely!) and these awesome libraries (Go will grab them for you!):
github.com/charmbracelet/bubbleteagithub.com/charmbracelet/bubbles/textareagithub.com/charmbracelet/bubbles/tablegithub.com/charmbracelet/bubbles/textinputgithub.com/charmbracelet/lipgloss
-
Get the code (if it's online):
git clone <your-repository-url> cd <your-project-directory>
-
Build your editor:
go build -o your_cute_editor_name .(Pick a fun name for
your_cute_editor_name!) -
Or just install it directly:
go install .(This puts it where Go keeps handy tools!)
-
Start fresh: Opens or creates
out.txt../your_cute_editor_name
or just:
your_cute_editor_name
-
Open a specific file:
./your_cute_editor_name path/to/your/file.txt
-
The Essentials:
Ctrl+C: Say goodbye! πCtrl+S: Save your masterpiece! πΎCtrl+F: Time to search! π΅οΈββοΈTab: Hop between panels! π
-
In the Editor π:
- Type away! (Letters, numbers, symbols...)
Arrow Keys: Move your cursor around.
-
In the File Browser π:
Arrow Up/Down: Choose a file or folder.Enter: Open the chosen file! (Doesn't open folders... yet!)
-
In the Search Box π:
- Type what you're looking for!
Enter: Go find it!
-
In the Search Results β¨:
Arrow Up/Down: Pick a line number.Enter: Zoom! Go to that line in the editor! μ!
Things we'd love to add to make this buddy even better:
- Highlighting Magic: Make code or search words stand out! β¨
- Show Where: Pinpoint search terms right on the line.
- Folder Adventures: Let's explore other directories! πΊοΈ
- Make New Friends: Create brand new files.
- Personal Touches: Maybe custom colors or keys?
- Smoother Sailing: Even better handling if things go slightly wrong.
