
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
CLI Gem which opens specified files (ofe.json) for editing in your text editor
Example:
# Open the 'default' group in your editor
# For example, this may execute: vim Gemfile Rakefile README.md app/models/* [...]
$ ofe
git clone https://github.com/eriknomitch/ofe.git
cd ofe
rake
Add an ofe.json
configuration file in any directory.
The primary keys define "groups" which you can pass to ofe
(see Usage).
Within groups, you can define keys:
"extensions":
Recursively searches your entire current directory for files with that extension to edit."files":
Either relative paths to files you want to open for editing or paths with globbing."exclusions":
Exclude any files starting with the exclusion paths specified."first_file":
Ensure that this file path is the first argument to your editor."topology":
Defines a topology to topologically sort the found files (i.e., which files should be passed after which other files)"command":
Executes a shell command and adds all files (delimited by newlines) from its output to the open list. Be careful with this one.Example ofe.json:
{
"default": {
"extensions": [".rb", ".gem", ".md"],
"files": ["Rakefile", "Gemfile", "bin/*", "ofe.json", ".gitignore"],
"exclusions": ["test/", "spec/"],
"first_file": "Gemfile",
"topology": {"baz.rb": ["foo.rb, "foo.rb"]}
},
"docs": {
"extensions": [".md"]
},
"git": {
"files": [".git/config", ".gitignore"]
},
"diff": {
"command": "git diff --name-only"
},
"test": {
"files": ["test/**/*.rb", "spec/**/*.rb"]
}
}
Match all files recursively in a directory and its subdirectories with:
{
"my_group": {
"files": ["my_directory/**/**"]
}
}
Match all files with an extension recursively in a directory and its subdirectories with:
{
"my_group": {
"files": ["my_directory/**/*.ext"]
}
}
# Opens the 'default' group in your editor (e.g., executes: vim Gemfile README.md [...])
$ ofe
# Opens the 'docs' group in your editor
$ ofe docs
# Lists all groups configured in ofe.json
$ ofe --groups|-g
# Parses and pretty prints ofe.json
$ ofe --list|-l
# Parses and pretty prints group from ofe.json
$ ofe --list|-l git
# Writes an example config file to ./ofe.json
$ ofe --mk-example-config|-m
# Opens ofe.json in your editor
$ ofe --self|-s
Erik Nomitch: erik@nomitch.com
FAQs
Unknown package
We found that ofe demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.