Categorygithub.com/JIsaacSamuel/pocoloco
repository
0.0.0-20241209075111-0a24a213ff43
Repository: https://github.com/jisaacsamuel/pocoloco.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

Pocoloco

Pocoloco is a terminal-based application built in Go using the Bubble Tea package for easier navigation of terminal.

Features

  • File Navigation: Navigate through directories using intuitive keyboard shortcuts.
  • File Editing: Open and edit files with nano directly from the terminal.
  • Search and Filter: Search and filter files dynamically as you type.

Pre-requisites

  • Make sure you are on linux or desbian based system. This files does not run on Windows, however is compatible with WSL.
  • Make sure you have the xclip along with nano and code
  • You can download xclip by running the following command:
    sudo apt-get install xclip
    

Installation

  1. Clone the repository:
    git clone https://github.com/JIsaacSamuel/pocoloco.git
    
    
  2. Navigate into the directory where main.go resides:
    cd cmd/pocoloco
    
    
  3. Run the Go project:
    go run main.go
    

This will open the command in an alternate buffer screen within the terminal. If you are using WSL2 with ubuntu distro like me you can access the command pocoloco anywhere in the terminal by following steps given below:

  1. Build the executable:
    go build
    
  2. Move the executable to /usr/local/bin/:
    mv pocoloco /usr/local/bin/
    

Key Commands

KeyAction
upMove the selection cursor up in the list.
downMove the selection cursor down in the list.
ctrl+cCopy the path of current directory and close the application.
escClear the screen and quit the application.
enterOpen the selected file or directory.
ctrl+zNavigate to the parent directory.
ctrl+sExecutes code . in the current directory.
backspaceDelete the last character of the search query.
Dynamic InputFilter files and directories dynamically by typing.