Comments (21)
Maybe create a new folder src/display/misc
or something like that, because we might need a widget/screen for killing a process, so those widgets can be grouped under that package.
from grofer.
@Gituser143 Yeah a table widget is what I'm looking into. I understand the part about pausing the UI, ohpefully wont run into too many issues
from grofer.
Can I pick this up?
from grofer.
Absolutely!
from grofer.
Awesome! Just to be sure, all the commands are listed in the usage section of the readme right? (i.e, no other commands/flags exist)
from grofer.
Yep!
All commands/flags for the latest release are available in the README.
from grofer.
I'm still working on this
from grofer.
I think I should wait on #54, since my changes will be in the same files
from grofer.
Ah okay, cool cool, I'll re-assign you
from grofer.
So what I've been thinking for this is to create a general help widget, which can take a help string and display it as required, as well as handling the necessary keybindings. This can then be used in the 3 subcommands with the appropriate help strings. Do you think this is a good way to go? If so, what would be the best place to define such a widget?
from grofer.
Bump @MadhavJivrajani @Gituser143 @metonymic-smokey
from grofer.
Hi @anihm136,
Apologies for the late response, yes that seems like a good way to go about it, just one question:
which can take a help string and display it as required
I didn't quite get you here, could you give an example about what would count as a "help string"?
from grofer.
@anihm136 Sorry for the delay! This seems perfect in theory. Maybe use a list or table widget to make it work? You could pause the UI rendering and then render just this help widget when the help key is pressed.
If you feel that's doable, you could get started on that!
from grofer.
I didn't quite get you here, could you give an example about what would count as a "help string"?
Something like pressing h
for help box. That's what was mentioned in the issue description. Correct me if I'm wrong though @anihm136
from grofer.
That's what I understood from the keybindings part.
from grofer.
@MadhavJivrajani what I mean is simply a newline-separated string, which contains some help message (need not be restricted to keybindings). The widget would handle splitting the string, formatting and displaying it appropriately. This is kind of how it's implemented in gotop, but there the help string is hardcoded into the widget, resulting in help for all the screens being displayed every time. I feel by making it modular we can be more flexible and display exactly the help that is needed for the current screen
from grofer.
Gotcha. That sounds good!
from grofer.
@anihm136 You might want to look into list too, that helps with scrolling!
from grofer.
Will do
from grofer.
@anihm136 You might want to look into list too, that helps with scrolling!
and also providing selection functionality based on what the user chooses while scrolling
from grofer.
What would be the best place to define this widget, considering it's general to all the screens? I was thinking in src/display/general
, maybe in a new file?
from grofer.
Related Issues (20)
- [FEATURE REQ] Add keybind to navigate to child process in grofer proc HOT 3
- [FEATURE REQ] Add Dockerfile for `grofer` HOT 4
- [BUG] Incorrect timestamps
- [FEATURE REQ] Add keybindings for sorting output for `grofer proc` HOT 2
- [FEATURE REQ] add key bindings for `kill`ing and `restart`ing docker containers from `grofer` HOT 4
- [BUG] grofer fails in tmux HOT 4
- [FEATURE REQ] Add version number to about page HOT 31
- [BUG] Incorrect unit in `RoundValues()` HOT 2
- [BUG] Selectoed process out of bounds in `grofer proc`
- [Enhancement] Improve the way container actions are handled
- [FEATURE REQ] A screen that can track battery usage HOT 6
- [FEATURE REQ] Kubernetes Monitoring and Dashboard HOT 8
- [FEATURE REQ] Add an action table for the overall container page
- [FEATURE REQ] provide support for different signal types HOT 5
- [BUG] incorrect pid validation in `proc` command HOT 6
- [FEATURE REQ] add monitoring of system resources given docker container id
- [Enhancement] add cleaner and more efficient error handling HOT 1
- -c flag throws error HOT 3
- [FEATURE REQ] add the `s`(pause) key-binding to help menus HOT 2
- [DOC] document using `grofer export` format HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grofer.