Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

21 Commits

Repository files navigation

Banner

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"
[ -n "$PS1" ] && eval "$DEVMODE_ALIAS"
[ -n "$ZSH_VERSION" ] && source ~/.zshrc || ([ -n "$BASH_VERSION" ] && source ~/.bashrc || [ -f ~/.profile ] && source ~/.profile)

πŸ—¨οΈ Command List

1. help

devmode help
devmode

2. Creating workspace

devmode create-new-workspace
devmode set

3. Remove workspaces

devmode remove-workspace
devmode rm

4. Run the program

devmode start-workspace
devmode run

πŸ› οΈ 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

Packages

No packages published

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /