{"id":16935728,"url":"https://github.com/knu/e","last_synced_at":"2025-10-17T19:28:10.505Z","repository":{"id":736993,"uuid":"387221","full_name":"knu/e","owner":"knu","description":"e - a smart wrapper for $EDITOR","archived":false,"fork":false,"pushed_at":"2012-04-26T09:03:50.000Z","size":116,"stargazers_count":29,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T19:06:39.331Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-11-27T06:42:21.000Z","updated_at":"2022-09-21T17:30:22.000Z","dependencies_parsed_at":"2022-07-05T13:13:42.642Z","dependency_job_id":null,"html_url":"https://github.com/knu/e","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/knu/e","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knu","download_url":"https://codeload.github.com/knu/e/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fe/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264719240,"owners_count":23653542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T20:55:12.654Z","updated_at":"2025-10-17T19:28:10.423Z","avatar_url":"https://github.com/knu.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# e - a smart wrapper for `$EDITOR`\n\n## NAME\n\n`e(1) - a smart wrapper for $EDITOR`\n\n## SYNOPSIS\n\n`e [[+LINENO|+/PATTERN] FILENAME [+LINENO|+/PATTERN]] ...`\n\n## DESCRIPTION\n\n`e(1)` is a smart wrapper for `$EDITOR` written in Bourne shell.  It\nenhances any editor with some user friendly features described below.\n\n## ENVIRONMENT\n\n- `EDITOR`\n\n    The command (or command line) wrapped around and invoked by this\n    wrapper.\n\n## EXAMPLES\n\nIf you have the environment variable `EDITOR` defined, then you are\nready to run `e`.  You can just drop the alias or symlink pointing to\nyour editor.  `e` is much more than an alias.\n\n- You invoke the editor of your choice hundreds of times everyday, so\n  the command name has to be short.  \"`vi`\" may look fine, but still\n  it's one stroke too many.  Start using `e` from now on and save your\n  precious time.\n\n        # In your shell's profile\n        # EDITOR=vi; export EDITOR\n\n        $ e anyfile\n\n- `e` takes input from stdin so you can open the output of a command\n  with the editor.\n\n        $ git diff | e\n\n- `e` prints the edited content if so requested.\n\n        $ e test.pl | perl\n\n- Combining the above two, you can use `e` as a filter in which you\n  can edit an intermediate output just as you want.\n\n        $ git diff | e \u003e annotated.patch\n\n- As you may have noticed, with `e` you can forget about adding\n  `` \u003c`tty` `` and/or `` \u003e`tty` `` around even if you are in the\n  middle of pipes and redirection.\n\n        $ grep -lr keyword . | xargs -n1 e\n\n        $ grep -lr keyword . | while read f; do e \"$f\"; done\n\n- As a bonus for non-vi users, `e` offers support for \"`+/PATTERN`\" to\n  all editors including Emacs.\n\n        # EDITOR=\"emacsclient -t\"\n        $ e +/'^main' prog.c\n        # Internally calls grep(1) with -E and runs $EDITOR, adding \"+LINENO\"\n        # if found.\n\n- `e` takes a position specifier followed by a file name.  This form\n  is exclusively supported by vi variants, but `e` changes the\n  parameter order so it works with most editors.\n\n        $ e prog.rb +42\n        # Runs `$EDITOR +42 prog.rb`\n\n- `e` understands the \"`FILENAME:LINENO`\" format, which is converted\n  to \"`+LINENO FILENAME`\" if a file named `FILENAME` exists.\n\n        $ e /path/to/file.rb:1218\n        # Runs `$EDITOR +1218 /path/to/file.rb`\n\n## SEE ALSO\n\n[`grep(1)`](http://www.freebsd.org/cgi/man.cgi?query=grep\u0026sektion=1),\n[`emacsclient(1)`](http://www.freebsd.org/cgi/man.cgi?query=emacsclient\u0026sektion=1\u0026manpath=FreeBSD+Ports),\n[`vi(1)`](http://www.freebsd.org/cgi/man.cgi?query=vi\u0026sektion=1)\n\n## AUTHOR\n\nCopyright (c) 2009, 2010, 2011, 2012 Akinori MUSHA.\n\nLicensed under the 2-clause BSD license.  See `LICENSE.txt` for\ndetails.\n\nVisit [GitHub Repository](https://github.com/knu/e) for the latest\ninformation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Fe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknu%2Fe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Fe/lists"}