trevorpogue / topspace Goto Github PK
View Code? Open in Web Editor NEWRecenter line 1 with scrollable upper margin/padding in Emacs
License: GNU General Public License v3.0
Recenter line 1 with scrollable upper margin/padding in Emacs
License: GNU General Public License v3.0
Is there a way to visually distinguish the topspace lines from actual leading new lines in the file itself?
Activating indicate-empty-lines
only shows the bottom empty lines in the fringe.
When a buffer is narrowed to a region that doesn't include the first line, then it is not possible to scroll the narrowed region down from the top of the buffer.
To Reproduce
M-x narrow-to-region
GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13.
Is your feature request related to a problem? Please describe.
Some modes, like telega
, org-agenda-mode
look really bad with this mode active, which prevents me from using the global-topspace-mode
Describe the solution you'd like
It would be nice if there was a defcustom
variable to customize certain modes where the user does not wish this mode to be active.
Describe the bug
When ElDoc shows more than 1 line, topspace "jumps" up.
To Reproduce
I'm using Spacemacs and I don't have enough Emacs experience to test this in an isolated environment.
typescript
layertopspace
to additional packages.ts
) file. Add console.log("test")
. Add some extra lines so it doesnt fit in the window.console
. It should now show 2 lines in the echo area belowExpected behavior
Nothing should happen :)
Latest from MELPA
GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6)
of 2022-04-04
Initialising Emacs with global-topspace-mode
breaks Shell-mode in the master branch of Emacs 29.
When you spawn Shell buffers with Global-TopSpace on, the shell prompt fails to get displayed in buffer. If you try to execute any commands, Emacs freezes up and you have to kill it.
I've narrowed TopSpace down as the culprit for this as commenting it out in my init fixes the issue.
Turn on global-topspace-mode
in your init.el (I use use-package, and the code I use is:)
(use-package topspace
:ensure t
:config (global-topspace-mode 1)
)
Launch Emacs
Spawn a Shell buffer (M-x shell RET)
Type anything and press Return
Freeze up
Shell-mode (and Emacs in-turn) to not freeze up. And spawn with the shell prompt.
Version: 20220513.1925
Commit: dd7d35b
GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-05-22
Topspace does not behave when changing the text scale with text-scale-set
. When you scroll past the top the screen wraps around the point instead of moving it.
Also evil-scroll-*
commands misbehave, sometimes the down scroll gets stuck at a certain point and stops moving further, while the up scroll will once again wrap the screen.
The problem occurs after changing the buffer's text-scale and persists even after reverting the change.
(text-scale-set 2)
GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13.
Is your feature request related to a problem? Please describe.
With line numbers enabled, line number 1 is currently shown at the top of the buffer. This is perfectly workable but it would be nice if it was in front of the actual first line of text.
Describe the solution you'd like
Have line number 1 be in front of the first line of text.
Hi,
FYI, I wasn't sure what this package did until I saw the demo GIF, because I didn't know what "top lines" meant. You may want to explain that differently in the description. :)
Describe the bug
M-x topspace-mode
affects all buffers, not just the local one.
To Reproduce
Steps to reproduce the behavior:
Example:
emacs -Q
, install topspacefile1.el
with (require 'topspace)
in it.C-x 3
, visiting another file there, file2.el
(doesn't have to exist)M-x topspace-mode
in one of the splitsExpected behavior
The window and its buffer where you ran topspace-mode
scrolls down; the other doesn't
Actual behavior
Both windows can scroll down with topspace
Screenshots
Edit: I now realize this variable is not buffer-local by default anyway, and also t
after the require, so that's irrelevant. Screenshots left here to show that the mode is off in one of the buffers.
The window where topspace-mode
is run:
The window that shouldn't have been affected still has topspace-active
set to t
:
GNU Emacs 28.0.90 (build 1, aarch64-apple-darwin21.2.0, NS appkit-2113.20 Version 12.1 (Build 21C52))
of 2021-12-28
topspace.el from master
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.