Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: command line utility for Moped #10

Open
btbytes opened this issue Jan 31, 2020 · 2 comments
Open

Feature Request: command line utility for Moped #10

btbytes opened this issue Jan 31, 2020 · 2 comments
Milestone

Comments

@btbytes
Copy link

btbytes commented Jan 31, 2020

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.

@RobertoMachorro
Copy link
Owner

RobertoMachorro commented Feb 12, 2020

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 RobertoMachorro added this to the v1.8.5 milestone Jul 13, 2021
@NerdyDeedsLLC
Copy link

NerdyDeedsLLC commented Aug 3, 2021

@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?
~_^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants