Comments (12)
@rauchg: Just my five cents, if you don't mind.
I am on Linux and use rxvt-unicode
(AKA urxvt
), which is a popular terminal emulator. In urxvt
it is common practice to hide the scrollbar because it is also very ugly. When hidden, it behaves like the hterm
option you disagree with, where the scrollbar is always hidden. I find this to be preferable, as the mouse wheel handles the scrolling, and when I start typing the terminal snaps back to the bottom. No Ugly scrollbar takes up any of my precious ultrabook pixels or obscures my text.
Besides, many people are going to be using Terminal Multiplexers like tmux
or screen
where the scrollback buffer is completely handled by the multiplexer and mouse scrolling is absolutely void.
In both these cases, there is an argument to be made for hiding the scrollbar completely, which I support. At the very least, please consider making it an option in .hypertext.js
, where the option can be either Always show, Hidden when not in use or Always hidden.
from hyper.
It seems like the hterm options hides them completely, all the time. I don't like that. Upon the user scrolling, they should be shown. I'll have to think more about how to do that nicely. One idea is listening on scroll
events and ignore them whenever we know that the terminal itself is triggering scrolling.
from hyper.
This actually sounds like a very difficult problem :(. Here's the best solution I can think of:
- If the user places their mouse on the rightmost 50px[1] of the screen, mark
overflow: auto
(and get rid of it after the mouse leaves that area) - If the user triggers wheel events, mark
overflow: auto
(and get rid of it after a timer)
[1] 50 is arbitrary to encompass linux, windows, mac. Can probably be less on the mac.
from hyper.
On the other hand, scrolling far back is so difficult using only the scroll wheel. Neither arrow keys nor page up/page down keys control the scroll position...
from hyper.
We should :)
from hyper.
It does not hide it?
from hyper.
I like the second idea, is how iTerm works by default, it only shows the scrollbar if you scroll using wheel's mouse, when you stop it disappears after ~500 ms
from hyper.
I occasionally run into a situation where the scrollback is super long, and I want to scrub it much faster than scrollwheel lets me. I usually start scrolling, then grab the scroll handle and drag it up and down. I noticed that unlike most OSX apps, this behavior is not the same (normally when you hover the scroll handle in an OSX app, it'll slightly expand it's width and become draggable), I'd love to see that act like the rest of the OS!
from hyper.
Here's a quick gif of that behavior in chrome:
from hyper.
from hyper.
other related: #301
from hyper.
I totally agree with @esphen:
the option can be either Always show, Hidden when not in use or Always hidden.
from hyper.
Related Issues (20)
- Tab crashes when opening in a missing CWD HOT 1
- Copy with formatting
- How is the renderer process able to import node modules from the main process? HOT 1
- IPC Sender Verification and Electron.js Version Upgrade
- more smooth copy/paste
- HYPER WOULDN'T LET ME MODIFY MY PREFERENCES HOT 1
- A JavaScript error occurred in the main process Uncaught Exception: Error: File not found: at new WindowsPtyAgent (C:\Users\mdtan\AppData\Local\Programs\Hyper\resources\app.asar\node_modules\no...:36) at new WindowsTerminal (C:\Users\mdtan\AppData\Local\Programs\Hyper\resources\app.asar\node_modules\no...:24) at spawn (C:\Users\mdtan\AppData\Local\Programs\Hyper\resources\app.asar\node_modules\no...:12) at Session.init (C:\Users\mdtan\AppData\Local\Programs\Hyper\resources\app.asar\session.js:138:24) at new Session at createSession i\window.js:139:25) at Server.<anonymous> i\window.js: 144:38) at Server.emit (node:events:527:28) at Server.ipcListener rog : 1 5) at IpcMainlmpl.emit (node:events:527:28) HOT 6
- Preferences window never opens
- Use Git Bash SDK as an alternative shell
- Windows environment variables do not take effect
- nerd fonts HOT 2
- Command + Delete Not Working in Hyper with Fish Shell on MacOS HOT 1
- unable to click enter when performinga simple action such as ls Documents/ HOT 1
- How to pass multiple shell arguments
- Command line text in neovim does not disappear
- xterm includes its own hard-coded map
- Supporting the Default Terminal Application setting in Windows
- shell issue
- Unable to get local issuer certificate
- Fails to run on Raspberry Pi OS arm64 HOT 2
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 hyper.