Comments (12)
Is this still an issue? I tried GEOMETRY_INFO=()
and works as intended, I believe.
from geometry.
I would advise migrating to the mnml
branch of geometry, and seeing if this issue persists. If it does let's figure out how to get the behaviour you'd prefer.
I think I would prefer it to be consistent (within sudo) and always show @hostname
over remote. If that is not possible, we can come up with more creative solutions.
from geometry.
now the hostname seems gone but weirdly it isn't as it appears on the line above as i press enter (and enter doesn't insert a double newline)
from geometry.
That means geometry_hostname
is in your GEOMETRY_INFO
prompt, That's a default IIRC, If you don't want to use the INFO prompt (when you press enter without submitting a command) You can set GEOMETRY_INFO=()
in your zshrc.
from geometry.
it seems like a bug? it only appears above and there is no double newline? compare here
from geometry.
That is how GEOMETRY_INFO
works as far as I know.
This prompt didn't exist in the 1.x release, you can remove the default functions by explicitly setting GEOMETRY_INFO=()
in your zshrc. This will prevent having anything print when you submit an empty command line.
I suppose we could modify the behavior so that GEOMETRY_INFO runs on a ZSH hook like precmd
to have it display on its own line, but my understanding is that it was designed this way. I'll let @jedahan have the final word on this.
from geometry.
Its not a bug, but I am open to changing the design. I can see arguments for and against the current design, and even different behaviours. I personally like that there is no 'second line output' as it shows this is not just running a regular command, but can see how that might be confusing or weird.
from geometry.
i think it's a matter of preference and being accustomed (or not) to shell "themes" that have the option to insert a new line. if that is a thing then you open pandora's box of "when to do that" and "what happens if you do / don't", which personally i find a source of inconsistency but others might disagree. i'll try this later and come back with an answer. sorry for the delay :)
from geometry.
I think the newline feature could be implemented as an additional function which just adds a precmd
hook. This would allow people who want newlines to have them without changing the default behavior.
For the GEOMETRY_INFO
prompt itself, I don't think we should change the behavior, but we could probably make it configurable. I admit I don't use the INFO prompt much, and I was initially surprised by the default functions because I tend to hit enter to "scroll up".
from geometry.
That is how
GEOMETRY_INFO
works as far as I know.This prompt didn't exist in the 1.x release, you can remove the default functions by explicitly setting
GEOMETRY_INFO=()
in your zshrc. This will prevent having anything print when you submit an empty command line.
trying this removes the hostname, but no double newline. how is this not inconsistent with not being logged in to any machine and having a double newline instead?
from geometry.
I think itβs a good idea to check if the array is empty or null and skip our custom logic if so.
from geometry.
@jedahan Worked for me with GEOMETRY_INFO
, but found the behavior confusing as well.
from geometry.
Related Issues (20)
- exec_time doesn't show in prompt HOT 2
- command not found: geometry_plugin_register when installing plugins both manually and with antigen HOT 5
- Explicit args for default plugins HOT 3
- Investigate supporting gitstatus
- Git reports errors in git submodules HOT 5
- clobber ASYNC_FD HOT 2
- Update async prompt functions independently
- Holding enter crashes on macOS HOT 7
- Prompt displays hostname after empty command HOT 1
- geometry::wrap prints unneeded space if output of called function is empty or single-space HOT 1
- GEOMETRY_INFO is surprising HOT 2
- Custom git GEOMETRY_RPROMPT spews to stderr
- GEOMETRY_CMDTITLE has issues with escape codes HOT 1
- git init produces an error: fatal: ambiguous argument 'HEAD' HOT 2
- geometry swallows output without trailing \n HOT 2
- Request - Add install tool Oh-My-Zsh HOT 3
- Newlines being removed from custom command in magic enter
- Request: Python Virtualenv as a prompt element HOT 1
- Make new gifs using vhs
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 geometry.