Commit Graph

5 Commits (70a32d5a59308fc5647e6739e126912b6ca39024)

Author SHA1 Message Date
Luís Fiolhais 9afb439844 Fix autoload functions (#335) 8 years ago
Derek Willian Stavis a164ebdd5d init: rewrite init process (#260)
* init: rewrite init process

Now use pure globbing to generate 100% valid function and
completion paths, effectively splitting the init process in two
steps, one which paths are added, and other when initialization
is done (sourcing init).

This initialization code introduces a new interface for
`init.fish` hook, which deprecates the previously used event
model. The new interface injects three variables into `init.fish`:
path, package and bundle. This variables can be used by the
package to autoload paths, use bundled files, etc.

Also supports key bindings by sourcing
$OMF_CONFIG/key_bindings.fish and also key_bindings.fish in
packages (plugins and themes) root directories. This is done
when fish_user_key_bindings is called.

* omf: migrate to new init hook

* omf/templates: migrate to new init and uninstall hooks

* docs: document new init and uninstall hooks interface

* README: update new hook interface spec
8 years ago
Luís Fiolhais 15e9af84b1 Search Function (#314)
Add new search command
9 years ago
Derek Stavis 49dda5c2f7 Reorganize `omf` plugin structure
This updates omf plugin to new architecture, moving
functions to `functions` directory. It also revamps the
separation of concerns between CLI and underlying
implementations, organizing them into directories,
whose are autoloaded in plugin startup.
9 years ago
Bruno Pinto e2a7f7d229 Split into init.fish and omf.fish files 9 years ago