Showing with 495 additions and 34 deletions.
  1. +1 −1 .github/workflows/changelog.yml
  2. +2 −0 .gitignore
  3. +28 −15 CHANGELOG.md
  4. +17 −13 HISTORY.md
  5. +40 −0 tests/director-bootstrap.el
  6. +309 −0 tests/director.el
  7. +31 −0 tests/run
  8. +59 −0 tests/tests.el
  9. +8 −5 topspace.el
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Expand Up @@ -20,7 +20,7 @@ jobs:
sinceTag: v0.1.2
base: HISTORY.md
issues: no
futureRelease: 0.2.0
futureRelease: v0.2.1

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
*.~undo-tree~
.projectile
43 changes: 28 additions & 15 deletions CHANGELOG.md
@@ -1,8 +1,17 @@
# Changelog

## [0.2.0](https://github.com/trevorpogue/topspace/tree/0.2.0) (2022-04-12)
## [v0.2.1](https://github.com/trevorpogue/topspace/tree/v0.2.1) (2022-04-15)

[Full Changelog](https://github.com/trevorpogue/topspace/compare/v0.1.2...0.2.0)
[Full Changelog](https://github.com/trevorpogue/topspace/compare/v0.2.0...v0.2.1)

**Fixed bugs:**

- Prevent "Beginning of buffer" error message when scrolling above top [\#12](https://github.com/trevorpogue/topspace/pull/12) ([trevorpogue](https://github.com/trevorpogue))
- Fix inability to use scrolling commands interactively [\#11](https://github.com/trevorpogue/topspace/pull/11) ([trevorpogue](https://github.com/trevorpogue))

## [v0.2.0](https://github.com/trevorpogue/topspace/tree/v0.2.0) (2022-04-12)

[Full Changelog](https://github.com/trevorpogue/topspace/compare/v0.1.2...v0.2.0)

**Implemented enhancements:**

Expand All @@ -15,38 +24,42 @@
- Support buffers with varying line heights [\#10](https://github.com/trevorpogue/topspace/pull/10) ([trevorpogue](https://github.com/trevorpogue))
- Fix bug where topspace-mode doesn't work locally [\#6](https://github.com/trevorpogue/topspace/pull/6) ([trevorpogue](https://github.com/trevorpogue))

## 0.1.2 (2022-03-01)
## [v0.1.2](https://github.com/trevorpogue/topspace/tree/v0.1.2) (2022-03-01)

### New features
[Full Changelog](https://github.com/trevorpogue/topspace/compare/v0.1.1...v0.1.2)

### Bugs fixed
**Fixed bugs:**
* [#2](https://github.com/trevorpogue/topspace/pull/2): Make `recenter-top-bottom` act correctly when it moves point to bottom and top space is added to get there

### Changes
**Other changes:**

* [2584138](https://github.com/trevorpogue/topspace/commit/25841387a5d0300ea49356b9781c357b84df20bd): Raise topspace-center-position default to a subjectively better position

## 0.1.1 (2022-02-22)
## [v0.1.1](https://github.com/trevorpogue/topspace/tree/v0.1.1) (2022-02-22)

### New features
[Full Changelog](https://github.com/trevorpogue/topspace/compare/v0.1.0...v0.1.1)

**Fixed bugs:**

### Bugs fixed
* [4a69b2e](https://github.com/trevorpogue/topspace/commit/4a69b2eb741f8db9d69169a03a6724af0f2ec7ac): Allow recenter and recenter-top-bottom to be called interactively without an error
* [4eb27ab](https://github.com/trevorpogue/topspace/commit/4eb27abaa182e856ba3f3c8e1e84fdd2e1f009af): Prevent top space from all suddenly disappearing when visual-line-mode is enabled and cursor scrolls bellow window-end when top space is present

### Changes
## [v0.1.0](https://github.com/trevorpogue/topspace/tree/v0.1.0) (2022-02-19)

## 0.1.0 (2022-02-19)
[Full Changelog](https://github.com/trevorpogue/topspace/compare/79aa4e78d3f5c90fc9db46d597f1680c7900b52a...v0.1.0)

**Implemented enhancements:**

### New features
* [#1](https://github.com/trevorpogue/topspace/pull/1): Make mode work for any scrolling command by using add-advice with scroll-up, scroll-down, and recenter

### Bugs fixed

**Fixed bugs:**

* [#1](https://github.com/trevorpogue/topspace/pull/1): Stabilize, clean up, and add performance optimizations to code to make it ready for submission to MELPA

### Changes
* [e5b65ec](https://github.com/trevorpogue/topspace/commit/e5b65eccf92571163aa1b6bd738be22d8e0ad1a5): Change project name from vertical-center-mode to topspace
**Other changes:**

* [e5b65ec](https://github.com/trevorpogue/topspace/commit/e5b65eccf92571163aa1b6bd738be22d8e0ad1a5): Change project name from vertical-center-mode to topspace


\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
30 changes: 17 additions & 13 deletions HISTORY.md
@@ -1,32 +1,36 @@
## 0.1.2 (2022-03-01)
## [v0.1.2](https://github.com/trevorpogue/topspace/tree/v0.1.2) (2022-03-01)

### New features
[Full Changelog](https://github.com/trevorpogue/topspace/compare/v0.1.1...v0.1.2)

### Bugs fixed
**Fixed bugs:**
* [#2](https://github.com/trevorpogue/topspace/pull/2): Make `recenter-top-bottom` act correctly when it moves point to bottom and top space is added to get there

### Changes
**Other changes:**

* [2584138](https://github.com/trevorpogue/topspace/commit/25841387a5d0300ea49356b9781c357b84df20bd): Raise topspace-center-position default to a subjectively better position

## 0.1.1 (2022-02-22)
## [v0.1.1](https://github.com/trevorpogue/topspace/tree/v0.1.1) (2022-02-22)

### New features
[Full Changelog](https://github.com/trevorpogue/topspace/compare/v0.1.0...v0.1.1)

**Fixed bugs:**

### Bugs fixed
* [4a69b2e](https://github.com/trevorpogue/topspace/commit/4a69b2eb741f8db9d69169a03a6724af0f2ec7ac): Allow recenter and recenter-top-bottom to be called interactively without an error
* [4eb27ab](https://github.com/trevorpogue/topspace/commit/4eb27abaa182e856ba3f3c8e1e84fdd2e1f009af): Prevent top space from all suddenly disappearing when visual-line-mode is enabled and cursor scrolls bellow window-end when top space is present

### Changes
## [v0.1.0](https://github.com/trevorpogue/topspace/tree/v0.1.0) (2022-02-19)

[Full Changelog](https://github.com/trevorpogue/topspace/compare/79aa4e78d3f5c90fc9db46d597f1680c7900b52a...v0.1.0)

## 0.1.0 (2022-02-19)
**Implemented enhancements:**

### New features
* [#1](https://github.com/trevorpogue/topspace/pull/1): Make mode work for any scrolling command by using add-advice with scroll-up, scroll-down, and recenter

### Bugs fixed

**Fixed bugs:**

* [#1](https://github.com/trevorpogue/topspace/pull/1): Stabilize, clean up, and add performance optimizations to code to make it ready for submission to MELPA

### Changes
* [e5b65ec](https://github.com/trevorpogue/topspace/commit/e5b65eccf92571163aa1b6bd738be22d8e0ad1a5): Change project name from vertical-center-mode to topspace
**Other changes:**

* [e5b65ec](https://github.com/trevorpogue/topspace/commit/e5b65eccf92571163aa1b6bd738be22d8e0ad1a5): Change project name from vertical-center-mode to topspace
40 changes: 40 additions & 0 deletions tests/director-bootstrap.el
@@ -0,0 +1,40 @@
;; Scenarios might be stored in a projects's source tree but are
;; supposed to run in a clean environment. Disable reading
;; `.dir-locals.el' so that Emacs doesn't try to load it from the
;; project's source tree. This cannot come as part of the
;; `director-bootstrap' function because, by the time that's called by
;; a file in the source tree, Emacs will already have tried to load
;; the corresponding `.dir-locals.el' file.

(setq enable-dir-local-variables nil)

(defun director-bootstrap (&rest config)
"Setup the environment for a simulated user session."

(require 'package)

(setq byte-compile-warnings nil)
(when (boundp 'comp-async-report-warnings-errors)
(setq comp-async-report-warnings-errors nil))

(let ((user-dir (plist-get config :user-dir))
(packages (plist-get config :packages))
(additional-load-paths (plist-get config :load-path)))

(when user-dir
(setq user-emacs-directory user-dir)
(setq package-user-dir (expand-file-name "elpa" user-emacs-directory)))

(when additional-load-paths
(setq load-path (append load-path additional-load-paths)))

;; attempt requiring director here; if error, add director to list of required
;; packages, and retry after initializing packages
(package-initialize)
(when packages
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(dolist (package packages)
(unless (package-installed-p package)
(package-install package))))

(require 'director)))