Skip to content

devmode is a programming tool when you are coding on your phone, it helps to filter files with symlinks.

License

Notifications You must be signed in to change notification settings

ezaco-dev/devmode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

devmode 🛠️


🎯 About

devmode is a shell script that simplifies managing local coding workspaces on Android or Linux devices. With devmode, you can create a workspace by selecting specific files and folders, run the workspace using popular editors (SPCK, SPCK Node.js, Acode), and automatically sync changes between your workspace and the original directory.


⚡ Features

  • 📂 Create a workspace by selecting files/folders from the current directory
  • 🖥️ Choose your default editor: SPCK, SPCK Node.js, or Acode
  • 🔄 Automatic file synchronization between the workspace and original directory using rsync
  • 🗑️ Easily delete workspaces along with synced files in the editor folder
  • 🚫 Automatically filter out unnecessary files/folders like node_modules, .git, and log files
  • 🛡️ Protect config files and build artifacts from being synced

🚀 Installation

Android application required

1. Setup Termux

pkg update && pkg upgrade
pkg install git rsync jq

2. Clone Github

git clone https://github.com/ezaco-dev/devmode.git
cd devmode
mkdir config

3. Give file permission

chmod +x devmode.sh

4. Create a shortcut

export DEVMODE_ALIAS="alias devmode='~/devmode/devmode.sh'"
[ -n "$PS1" ] && eval "$DEVMODE_ALIAS"
[ -n "$ZSH_VERSION" ] && source ~/.zshrc || ([ -n "$BASH_VERSION" ] && source ~/.bashrc || [ -f ~/.profile ] && source ~/.profile)

🗨️ Command List

1. Creating workspace

devmode set-new-workspace 
devmode set

2. Remove workspaces

devmode remove-workspace
devmode rm

3. Run the program

devmode run
devmode

🛠️ Usage

  1. When creating a new workspace, select which files/folders to include.

  2. Choose the default editor (SPCK, SPCK Node.js, or Acode).

  3. Run the workspace — devmode copies files and starts automatic sync.

  4. Press Ctrl+C to stop syncing.

  5. Use the delete workspace command to remove workspaces you no longer need.


⚙️ Configuration

Workspaces are saved as JSON files under ~/devmode/config/.

Editor folders are configured for Android (SPCK, Acode) or Linux paths.

File/folder filters exclude large folders, symlinks, and unwanted directories like node_modules.


📄 License

MIT License

About

devmode is a programming tool when you are coding on your phone, it helps to filter files with symlinks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages