aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ROADMAP.md2
-rw-r--r--src/i_events.go1
-rw-r--r--src/i_insert.go3
3 files changed, 4 insertions, 2 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index c5ebc52..1f51410 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -37,8 +37,8 @@
## v0.7
+- [ ] scroll insert
- [ ] help
-- [ ] ssh jump rdp
- [ ] better readline
## v0.8
diff --git a/src/i_events.go b/src/i_events.go
index 82dbb54..dc6d44f 100644
--- a/src/i_events.go
+++ b/src/i_events.go
@@ -609,6 +609,7 @@ func i_events(data *HardData) {
data.ui.insert_sel = data.ui.insert_sel_max
} else if event.Rune() == 'i' ||
event.Rune() == 'a' ||
+ event.Rune() == ' ' ||
event.Key() == tcell.KeyEnter {
data.ui.insert_sel_ok = true
switch data.ui.insert_sel {
diff --git a/src/i_insert.go b/src/i_insert.go
index bdf00ed..354bc71 100644
--- a/src/i_insert.go
+++ b/src/i_insert.go
@@ -43,7 +43,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/i_insert.go
- * Tue Apr 16 16:32:29 2024
+ * Tue Apr 16 17:11:12 2024
* Joe
*
* insert a new host
@@ -216,6 +216,7 @@ func i_insert_check_ok(data *HardData, in *HostNode) {
switch in.Protocol {
case PROTOCOL_SSH: file[0], file[1] = in.Priv, in.Jump.Priv
case PROTOCOL_RDP: file[0] = in.RDPFile
+ case PROTOCOL_CMD: file[0] = in.Shell[0]
default: return
}
for _, v := range file {