Sergey Ponomarev
dd92e85d45
Open in browser
...
Most containers expose some http port. We can open it in browser.
For simplicity we can just open first container's published port.
We'll determine the ip:port on container creation and store to meta "Web Port".
To open browser on any platform was added a new dependency github.com/pkg/browser which is very small
2020-12-12 21:21:53 +02:00
Sergey Ponomarev
fa254c652c
Columns settings: add hint for re-order columns
2020-11-27 22:34:55 +02:00
Sergey Ponomarev
a59c7aab3c
Fix: enable pause [p] only for running or paused container
2020-11-27 22:28:58 +02:00
Sergey Ponomarev
53a6b36bf5
exec shell: detect default shell
...
Instead of using configured shell (e.g. bash) we can autodetect default container user's shell and execute it.
This is much safer because not all containers may have installed shell that is configured in ctop.
2020-11-20 10:42:52 +02:00
Sergey Ponomarev
5ec02f760e
exec shell: remove shell config or option
...
The option is never worked and can't properly work because almost all containers anyway using Ash/Dash from /bin/sh
2020-11-20 10:39:28 +02:00
Sergey Ponomarev
83a422933a
exec shell: on error show a status message instead of fatal exit
2020-11-20 10:33:44 +02:00
Sergey Ponomarev
7679d4a7fd
exec shell: fix shell config
...
Currently each time when ctop started it overwrites "shell" config with default value of program argument.
This means that in fact default shell config is never worked at all.
2020-11-20 10:31:00 +02:00
Bradley Cicenas
d34de844e0
add column config key to help menu
2020-10-25 10:31:51 -04:00
Bradley Cicenas
09566a4043
add optional tooltip to menu widget
2020-10-25 10:31:51 -04:00
Bradley Cicenas
f11a705b8b
add padding to column menu
2020-10-25 10:31:51 -04:00
Bradley Cicenas
7c6b5c54dc
init column config menu
2020-10-25 10:31:51 -04:00
Stanislav Pavlovichev
73986d2732
Enable cursor
2019-05-13 15:47:22 +03:00
Bradley Cicenas
b8c38d09ef
add exec shortcut key to container menu
2019-05-12 20:23:29 +00:00
Bradley Cicenas
d7384db373
Merge branch 'exec' of https://github.com/fr05t1k/ctop into fr05t1k-exec
2019-05-12 15:31:33 -04:00
Bradley Cicenas
9592de82a0
add keyboard shortcuts to container menu
2019-01-24 14:06:40 +00:00
Stanislav Pavlovichev
ca35ef2aab
Unnecessary loop stopping
2018-10-28 12:07:43 +02:00
Stanislav Pavlovichev
a26fc9169c
Ability to change Shell
2018-10-25 21:58:33 +03:00
Stanislav Pavlovichev
967a87a65f
Exec using API
2018-10-13 08:33:53 +03:00
Stanislav Pavlovichev
e68f7ba96a
fix: handlers used to work after "exec sh" command
...
feature: hot key for "exec sh"
2018-10-12 10:03:27 +03:00
Stanislav Pavlovichev
f27de1c29e
Exec Sh Feature
2018-10-07 16:46:32 +03:00
xiechengsheng
f7a3d38d6b
add more commands in container manager menu
...
Signed-off-by: xiechengsheng <XIE1995@whut.edu.cn>
2018-06-22 15:41:16 +08:00
Bradley Cicenas
17855e3d8e
add container name to log view title
2018-05-10 09:53:59 +00:00
Bradley Cicenas
1c7cf98e58
handle window resize in help dialog
2018-02-02 15:21:33 +00:00
Bradley Cicenas
d743472b16
add support for config file, keybinding for exporting active config
2018-01-11 13:15:18 -03:00
Bradley Cicenas
6d37a4e333
enable remove action for "created" state containers
2018-01-11 11:40:21 -03:00
Bradley Cicenas
eb49e51ffb
prevent recursive/nested running menus, handle all within main Display() loop
2018-01-11 11:23:28 -03:00
Bradley Cicenas
734d4bfc0c
add optional subtext to menu widget
2018-01-11 10:56:00 -03:00
Bradley Cicenas
0e75bbda58
add confirmation dialog for container management actions
2018-01-11 10:26:58 -03:00
Bradley Cicenas
8b5eb21ac3
add logs to container menu
2018-01-10 18:10:11 -03:00
Bradley Cicenas
c958e4c34e
move keybinding for single view, add single view to container menu
2018-01-10 15:45:14 -03:00
Bradley Cicenas
ab48d830d1
import formatting
2017-12-13 09:20:14 +08:00
Peter Reisinger
0a6e6f02a4
added option to toggle log timestamp in the log view, closes #107
2017-12-08 11:35:04 +00:00
Bradley Cicenas
53c0f2a9df
add resize handling to log view
2017-11-28 08:55:29 -05:00
Bradley Cicenas
28389aa38c
gofmt
2017-11-28 08:40:43 -05:00
Peter Reisinger
a0e0da1da9
Added 'view logs binding'
2017-11-25 18:30:50 +00:00
Peter Reisinger
436266b1a4
added container menu closes #28
2017-11-20 11:09:36 +00:00
Bradley Cicenas
b85ca680f0
restructure container,connectors in subpackage
2017-06-08 11:51:02 -03:00
Bradley Cicenas
38599bbd19
add keymap, handle wrapper for common keybindings
2017-03-15 08:34:58 +10:00
Bradley Cicenas
ca61ec712e
prepopulate filter input with current filter, add esc handler
2017-03-13 08:32:33 +11:00
Bradley Cicenas
0e3fe88bb4
use consistent case for ctop name
2017-03-09 10:40:35 +11:00
Bradley Cicenas
bf4d59c251
clear screen conditionally
2017-03-08 11:10:38 +11:00
Bradley Cicenas
b8eb386360
add global default ColorMap
2017-03-08 10:40:03 +11:00
Bradley Cicenas
98d8dc62f9
add stream to input widget, realtime filtering updates
2017-03-07 12:47:07 +11:00
Bradley Cicenas
a1d68833fa
lower logging, add keybindings to help menu
2017-03-07 11:09:46 +11:00
Bradley Cicenas
93db38d654
align ctop header on resize, add keybinding to help dialog
2017-02-20 10:52:59 +11:00
Bradley Cicenas
8f8474e468
move compact field header into widgets
2017-02-19 15:09:27 +11:00
Bradley Cicenas
84849a0c9f
add SetCursor method to menu
2017-02-19 14:54:24 +11:00
Bradley Cicenas
db050031df
check for nil listener before close
2017-02-18 14:37:00 +11:00
Bradley Cicenas
a1f860a020
export config struct fields, add convenience methods for value fetching
2017-02-16 15:06:05 +11:00
Bradley Cicenas
9ddc99f788
refactor menu into subpackage
2017-02-15 18:40:16 +11:00