A supersimple nano-based IDE for emergencies.
MyIDE is a terminal-based integrated development environment (IDE) that utilizes tmux, ranger, and nano to provide a powerful and customizable workspace for developers. This setup allows you to navigate your file system, edit files, and run terminal commands within a split-terminal layout.
To install and configure MyIDE on a new Linux machine, follow these steps:
- Ensure you are running a Linux distribution with
aptpackage manager (e.g., Ubuntu, Debian).
-
Download the installation script:
wget https://raw.githubusercontent.com/adamvis/myide/main/install.sh -O install_myide.sh
-
Make the script executable:
chmod +x install_myide.sh
-
Run the installation script:
./install_myide.sh
This script will:
- Install
tmux,ranger, andnano. - Create the necessary configuration files.
- Set up the
myide.shscript. - Add an alias for
myidein your.bashrc.
To start MyIDE, use the myide command followed by the path to the directory you want to work in:
myide /path/to/dirThis command will open a tmux session with the following layout:
- Left pane (20%):
rangerfile manager. - Top right pane (80%):
nanotext editor. - Bottom right pane (20%): Terminal for running commands.
To navigate the IDE panels use Ctrl+b and then <arrow-key> while to modify relative sizes of panels use Ctrl+b+<arrow-key>
Use the following keys to navigate and manage files in ranger:
- Up/Down arrows or
k/j: Move up/down the file list. - Right arrow or
l: Open directory or file. - Left arrow or
h: Go to the parent directory. gg: Go to the top of the list.G: Go to the bottom of the list./: Search for a file or directory.n: Go to the next search result.N: Go to the previous search result.q: Quitranger.
- Copy: Select files using
Space, then pressyy. - Cut/Move: Select files using
Space, then pressdd. - Paste: Navigate to the destination directory, then press
pp. - Delete: Select files using
Space, then pressddandx.
- Enter or
l: Open the selected file innanoin the top right pane. - Saving Changes: Press
Ctrl+O, thenEnter. - Exiting Nano: Press
Ctrl+X.
- Run Commands: Use the bottom right terminal pane to run any shell commands.
- Switch Panes: Use
Ctrl+bfollowed by arrow keys to switch betweentmuxpanes.
You can customize ranger and tmux further by editing their configuration files:
- Ranger Configuration:
~/.config/ranger/rc.conf - Tmux Configuration:
~/.tmux.conf
To remove MyIDE, simply delete the configuration files and the myide.sh script:
rm -rf ~/.config/ranger
rm ~/myide.sh
sed -i '/alias myide=/d' ~/.bashrcReload your .bashrc:
source ~/.bashrcIf you encounter any issues, ensure that all necessary packages are installed and that the configuration files are correctly placed. Refer to the installation script for specific setup details.
Contributions and suggestions are welcome! Feel free to open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License.