Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
Modified 'Ls' auto-complete provider to allow combinations of short f…
Browse files Browse the repository at this point in the history
…lags
  • Loading branch information
mkenne11 authored and drew-gross committed Mar 13, 2017
1 parent 342dd99 commit b096383
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plugins/autocompletion_providers/Ls.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import {PluginManager} from "../../PluginManager";
import {directoriesSuggestionsProvider} from "../autocompletion_utils/Common";
import {directoriesSuggestionsProvider, combineShortFlags} from "../autocompletion_utils/Common";
import combine from "../autocompletion_utils/Combine";
import {manPageOptions} from "../../utils/ManPages";

PluginManager.registerAutocompletionProvider("ls", combine([directoriesSuggestionsProvider, manPageOptions("ls")]));
const lsOptions = combineShortFlags(manPageOptions("ls"));

PluginManager.registerAutocompletionProvider("ls", combine([directoriesSuggestionsProvider, lsOptions]));

0 comments on commit b096383

Please sign in to comment.