Moped icon indicating copy to clipboard operation
Moped copied to clipboard

Feature Request: command line utility for Moped

Open btbytes opened this issue 5 years ago • 2 comments

Other mac text editors like Cot and TextMate have terminal integration that allows you to open a file from the Terminal by typing:

cot foo.md
mate bar.py
subl another.c #for sublime text

This will greatly increase the utility of Moped for many users because Moped can open a file much quicker than either of the above two text editors, and quick open/edit cycle can make huge difference in the usability of a program (

Here's how cot does it. It is worth considering if we can repurpose this script (Apache2.0 License) to something similar Moped by changing the APPLICATION_NAME variable.

btbytes avatar Jan 31 '20 01:01 btbytes

You are right and that is definitely on the list. Thanks for the cot suggestion, worth a try. The direction I've been thinking about is more like TextMates's rmate, which uses sockets and would allow remote editing of files as well.

For now, you can try my poor man solution for this - scroll to the bottom of the post.

RobertoMachorro avatar Feb 12 '20 14:02 RobertoMachorro

@RobertoMachorro

For now, you can try my poor man solution for this - scroll to the bottom of the post.

alias mopedit="open -a Moped $@"
echo 'alias mopedit="open -a Moped $@"'>>~/.bash_profile # (or .zprofile. Pick your poison)

# Usage: 
# mopedit "filename.ext"
#   - or  - 
# mopedit "file1.ext" "file2.ext"

First thing I did, post-install. No sense in bloating such a gloriously-lightweight tool, yanno? ~_^

NerdyDeedsLLC avatar Aug 03 '21 03:08 NerdyDeedsLLC