Godot-GDShell icon indicating copy to clipboard operation
Godot-GDShell copied to clipboard

Change promt to be more useful

Open tryoxiss opened this issue 1 year ago • 5 comments

I finally got it set up in a project and I was wondering what that was for. I know thats default in bash, user@computer, but here it dosen't seem to serve a pourpose other than to mimic BASH. I would say the seccond variable can be used for the current scene but I don't know what the first one could really be fore. (e.g., main_menu$ [enter command]).

Personally I don't really see a point in having constants in the promt more than necesary, especially not when thier only pourpose is to mimic bash. It can -- and does -- have a familliar feel without that.

tryoxiss avatar Nov 02 '23 03:11 tryoxiss

It really serves no purpose other than to "look cool". We can definitely give it a purpose and maybe make it accessible to be modified by commands?

I would say the seccond variable can be used for the current scene but I don't know what the first one could really be fore. (e.g., main_menu$ [enter command]).

What about scene_name@project_name? If I remember correctly, currently it does show gdshell@project_name.

Kubulambula avatar Nov 02 '23 09:11 Kubulambula

Allowing it to be modified by commands (especially autorun which runs at the start) would be really good!

That would work but the project name is not really something needed most of the time, and theres gdfetch for that when it is. And it dosen't seem to be the projects name. (see screenshot)

image

If it is made customiseable some things that could be useful is

  • Current scene
  • Current memory useage
  • Allocated threeads
  • is it safe or unsafe mode ($ could be safe, # could be unsafe maybe?)
  • Arbitrary strings or code variables
  • godot version
  • build (editor/export)
  • Is the scene "ready" (ready/loading)

Having a few promt presets may also be good. Such as scene [mem_used/mem_alloc] $

tryoxiss avatar Nov 07 '23 21:11 tryoxiss

I don't really know about having monitors hooked up to it (like the memory usage) as there's a separate command for it already. But Godot version and separate symbols to show if the GDShell is in safe or unsafe mode are great ideas.

Kubulambula avatar Nov 13 '23 09:11 Kubulambula

I think the prompt should display info on where you are, just like in the shell Maybe it could show you which scene is currently running?

CollCaz avatar Nov 13 '23 15:11 CollCaz

I don't really know about having monitors hooked up to it (like the memory usage) as there's a separate command for it already. But Godot version and separate symbols to show if the GDShell is in safe or unsafe mode are great ideas.

Yeah I was just dropping any idea I thought of, looking at it again a seperate command is just better.

tryoxiss avatar Nov 13 '23 21:11 tryoxiss