-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fluid-width windows by default [Enhancement] #179
Comments
Good question! How do fluid-width windows work in a terminal? |
It works rather well from my experience with or without X11, and I haven't seen any display issues. I'll retest with a clean config and share my results for clarity. |
The right-margin appears to be 2 columns off-screen in my testing (see images below), though I had no other issues in either gnome-terminal or tty. This should be a minor issue that can be fixed by adding a right-margin of 2, but I'll confirm that this is the case and submit a pull request when suitable. I'm using Emacs v24.5.1 && Circe v1.6 with no other configuration Fluid-Width EnabledFluid-Width Disabled |
Thank you for testing this! This looks rather good to me. Any other opinions? @wasamasa ? |
I've been using fluid-width windows exclusively ever after Circe's scrolling became less wonky with the recent changes (before that usage of ido managed pushing the cursor away from the input line and resulted in scrolling backwards with incoming server output...) and am pretty happy with it. Currently I only have tuning the movement behaviour in the input line on my todo ( So, the only thing I'm worrying about is how to make sure people can customize it in case they aren't happy with it at all or want to tweak minor stuff. The latter should be doable with the existing hooks, the former requires a customizable that needs to be set before loading up Circe. |
Looks like a right-margin-width of 8 is spot-on, though I agree with @wasamasa about ensuring this is readily available to adjust in case someone finds it annoying.
Edit: Updated |
We can easily add a new value for Some observations:
Of those, (2) is somewhat of a dealbreaker for me. I guess wrapping behavior can not be configured differently depending on the parts of the buffer you are in? :-) |
I've disabled continuation lines in my setup, but have done the line wrapping a bit differently (I'm using edit: That is part of the linked wiki entry, so nevermind. |
Added one more annoyance with (2): Typing a longer line creates a new displayed line, which causes the window to scroll, which makes lui not keep the line flushed to the bottom for some reason. (I hate the hacky nature of that feature, and that Emacs has no way of doing this correctly.) |
@jorgenschaefer Good catch!
I'll continue testing this and report back sometime tomorrow when I have more brain cells firing. |
The snippet from the wiki is for GUI versions. I'm on a terminal. I probably did not clarify enough what I find annoying: If I type a long line, it gets broken into multiple lines and continuation lines receive the
|
Ah I apologize for misunderstanding that point. Even with an empty wrap-prefix the lines are still behaving strangely, but it does not seem to impact usability when in a tty as the text is still visible (though this is rather annoying). Also, I believe I found what may be preventing your timestamps from displaying. For a right-aligned timestamp I use the following modified from the wiki:
|
We seem to have different ideas about what "usability" means :-D Thanks for the snippet. What exactly did you change there? All I noticed was that you removed the brackets around time stamps and made the margin smaller? |
There are too many minor issues for this to be pleasant for new users. For now I'll recommend that we close this issue and plan for this to land beyond the v2.0 release (or until the expected behavior is improved). |
We could add a convenience function, or a setting for |
Hm. I like the idea of making |
I need to stop using github while drinking, it's very hazardous! |
Nothing that's undoable is hazardous! :-D |
After using circe for a little while, I am finding it hard to imagine a use-case where someone wouldn't want Fluid-Width Windows by default. Is there a possibility of this being included by default or has the consensus been against this?
The text was updated successfully, but these errors were encountered: