diff --git a/src/app/clientsettings/clientsettings.tsx b/src/app/clientsettings/clientsettings.tsx index bf02013e..7e980a49 100644 --- a/src/app/clientsettings/clientsettings.tsx +++ b/src/app/clientsettings/clientsettings.tsx @@ -11,7 +11,6 @@ import { Toggle, InlineSettingsTextEdit, SettingsError, Dropdown, Button } from import { commandRtnHandler, isBlank } from "@/util/util"; import { getTermThemes } from "@/util/themeutil"; import * as appconst from "@/app/appconst"; -import { getSuggestions, Shell } from "@/autocomplete"; import "./clientsettings.less"; import { MainView } from "@/common/elements/mainview"; @@ -193,12 +192,6 @@ class ClientSettingsView extends React.Component<{ model: RemotesModel }, { hove GlobalModel.clientSettingsViewModel.closeView(); } - @boundMethod - async handleSubmitEphemeral() { - const resp = await getSuggestions("ls -", "~", Shell.Zsh); - console.log("resp", resp); - } - render() { const isHidden = GlobalModel.activeMainView.get() != "clientsettings"; if (isHidden) { @@ -361,12 +354,6 @@ class ClientSettingsView extends React.Component<{ model: RemotesModel }, { hove /> -
-
Submit Ephemeral Command
-
- -
-
diff --git a/src/app/workspace/cmdinput/textareainput.tsx b/src/app/workspace/cmdinput/textareainput.tsx index 4b1dd820..3693315b 100644 --- a/src/app/workspace/cmdinput/textareainput.tsx +++ b/src/app/workspace/cmdinput/textareainput.tsx @@ -11,6 +11,7 @@ import cn from "classnames"; import { GlobalModel, GlobalCommandRunner, Screen } from "@/models"; import { getMonoFontSize } from "@/util/textmeasure"; import * as appconst from "@/app/appconst"; +import { Shell, getSuggestions } from "@/autocomplete"; type OV = mobx.IObservableValue; @@ -117,23 +118,19 @@ class CmdInputKeybindings extends React.Component<{ inputObject: TextAreaInput } this.lastTab = true; this.curPress = "tab"; const curLine = inputModel.getCurLine(); - if (lastTab) { - GlobalModel.submitCommand( - "_compgen", - null, - [curLine], - { comppos: String(curLine.length), compshow: "1", nohist: "1" }, - true - ); - } else { - GlobalModel.submitCommand( - "_compgen", - null, - [curLine], - { comppos: String(curLine.length), nohist: "1" }, - true - ); - } + // if (lastTab) { + getSuggestions(curLine, "~", Shell.Zsh).then((resp) => { + console.log("resp", resp); + }); + // } else { + // GlobalModel.submitCommand( + // "_compgen", + // null, + // [curLine], + // { comppos: String(curLine.length), nohist: "1" }, + // true + // ); + // } return true; }); keybindManager.registerKeybinding("pane", "cmdinput", "generic:confirm", (waveEvent) => { diff --git a/webpack/webpack.electron.js b/webpack/webpack.electron.js index 69865d7c..fdf3aa3a 100644 --- a/webpack/webpack.electron.js +++ b/webpack/webpack.electron.js @@ -69,7 +69,6 @@ var electronCommon = { "@/plugins": path.resolve(__dirname, "../src/plugins/"), "@/autocomplete": path.resolve(__dirname, "../src/autocomplete/"), }, - modules: [path.resolve(__dirname, "../node_modules")], }, }; diff --git a/webpack/webpack.web.js b/webpack/webpack.web.js index 4f87d3ae..2b2e61d7 100644 --- a/webpack/webpack.web.js +++ b/webpack/webpack.web.js @@ -90,7 +90,6 @@ var webCommon = { "@/plugins": path.resolve(__dirname, "../src/plugins/"), "@/autocomplete": path.resolve(__dirname, "../src/autocomplete/"), }, - modules: [path.resolve(__dirname, "../node_modules")], }, };