-
- Downloads
ENH: use bash associative array for on-the-fly completion (issue #551)
- this reduces the number of functions and allows lazy loading of completion options, which makes it easy to quickly add any other OpenFOAM application in completion. The generic '_of_complete_' function handles (bash) completion for any OpenFOAM application. On the first call for any particular application, it retrieves the available options from the application help output and adds this information to its environmental cache for subsequent use. - Tcsh completion uses the same function via a bash wrapper. But since its wrapper is transient, the on-the-fly generation would be less efficient. For this case, a pre-generated completion_cache can be used, which is generated with bin/tools/foamCreateCompletionCache
Showing
- bin/tools/foamCreateCompletionCache 199 additions, 0 deletionsbin/tools/foamCreateCompletionCache
- etc/config.csh/complete-wrapper 93 additions, 0 deletionsetc/config.csh/complete-wrapper
- etc/config.csh/tcsh_completion 14 additions, 6 deletionsetc/config.csh/tcsh_completion
- etc/config.csh/unset 3 additions, 4 deletionsetc/config.csh/unset
- etc/config.sh/bash_completion 147 additions, 2457 deletionsetc/config.sh/bash_completion
- etc/config.sh/completion_cache 259 additions, 0 deletionsetc/config.sh/completion_cache
- etc/config.sh/unset 12 additions, 7 deletionsetc/config.sh/unset
Loading
Please register or sign in to comment