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

Pipe through command line #1564

Open
timobezjak opened this issue Dec 20, 2023 · 3 comments
Open

Pipe through command line #1564

timobezjak opened this issue Dec 20, 2023 · 3 comments
Labels
request feature requests from users

Comments

@timobezjak
Copy link

Coming from TextMate, there’s a lot to love about CotEditor. And there is one thing missing: Pipe (selection or entire contents) through command line command. It adds a lot of power and saves you from reproducing all the sed, grep, and sort functionality for the few moments it’s needed. Actually, fgrep something | sort -u or egrep -v ^$ isn’t that rarely used, although the latter can be replaced by the regex search that is already available.

@timobezjak timobezjak added the request feature requests from users label Dec 20, 2023
@1024jp
Copy link
Member

1024jp commented Dec 21, 2023

I suppose the pipe feature is already implemented in the command-line tool.

Try running the following line in the terminal and you'll get a new document window with the text abc on CotEditor (you need to set the cot command first).

echo "abc" | cot -n

If you have a specific case that does not work, please elaborate on it more.

@1024jp
Copy link
Member

1024jp commented Dec 21, 2023

I may have misread your request. Is it something similar to the previous requests #470 and #573?
Then, I first recommend utilizing the CotEditor scripting feature to realize your demand with the current CotEditor.
And for the GUI feature to quickly run some command-line commands, please be patient. I know the feature request is on the list but postponed for almost 10 years...

@timobezjak
Copy link
Author

#573 looks like it’s getting close. What’s missing is an option to give it a command line (instead of [ ] Delete matching lines and [ ] Grep and Find lines containing just let me typegrep -v). Thanks for considering the idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request feature requests from users
Development

No branches or pull requests

2 participants