diff --git a/CHANGELOG.md b/CHANGELOG.md index 34278c8..9977566 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,17 @@ -## (next) +## 4.6.0.0 -* Embed the Termonad icon into the Termonad library (instead of having it set - as a `data-file` in `termonad.cabal`). - - This fixes a problem some users were seeing when garbaging-collecting their - Nix store and losing the required `termonad-lambda.png` file that their - Termonad binary was referencing: - [#165](https://github.com/cdepillabout/termonad/issues/165) +* The thing that may affect end users the most in this release is that the + **`defaultMain` function moved from `Termonad.App` to `Termonad.Startup`**. + (_However, it is also exported from the top-level `Termonad` module, so most + users will likely want to get it from the top-level `Termonad` module_.) + [#239](https://github.com/cdepillabout/termonad/pull/239) - Thanks [@refaelsh](https://github.com/refaelsh)! [#236](https://github.com/cdepillabout/termonad/pull/236) +* There has been a big refactoring of the guts of Termonad. As an end user, + if you reach into any modules like `Termonad.App`, `Termonad.Term`, or + `Termonad.Types`, you may notice some functions have moved around or gained + new arguments. Some data types have changed as well. Most end users don't + use these modules, so I don't expect that this refactoring will affect most + users. * Add support for setting Termonad options with CLI arguments. Add a whole CLI argument parser based on optparse-applicative. @@ -23,6 +26,16 @@ funtionality, you should be able to use the `Termonad.start` function (in place of `Termonad.defaultMain`). +* Embed the Termonad icon into the Termonad library (instead of having it set + as a `data-file` in `termonad.cabal`). + + This fixes a problem some users were seeing when garbaging-collecting their + Nix store and losing the required `termonad-lambda.png` file that their + Termonad binary was referencing: + [#165](https://github.com/cdepillabout/termonad/issues/165) + + Thanks [@refaelsh](https://github.com/refaelsh)! [#236](https://github.com/cdepillabout/termonad/pull/236) + * Rename the `Termonad.PreferencesFile` module to `Termonad.Preferences.File`. Also, add a `Termonad.Preferences` module that re-exports everything helpful @@ -31,12 +44,6 @@ `Termonad.Preferences`. [#238](https://github.com/cdepillabout/termonad/pull/238) -* Move the `defaultMain` function from `Termonad.App` to `Termonad.Startup`. - (It is also exported from the top-level `Termonad` module, so most users - will likely want to get it from there.) - [#239](https://github.com/cdepillabout/termonad/pull/239) - - ## 4.5.0.0 * Add an `allowBold` option (which defaults to `True`). This can be used if diff --git a/src/Termonad/App.hs b/src/Termonad/App.hs index 6505383..76d756a 100644 --- a/src/Termonad/App.hs +++ b/src/Termonad/App.hs @@ -197,7 +197,9 @@ setupAppCallbacks mvarTMState tmConfig app win note tmWinId = do pure () -- void $ createTerm handleKeyPress mvarTMState tmWinId actionMapAddAction app newWindowAction - applicationSetAccelsForAction app "app.newwin" ["N"] + -- TODO: Uncomment this when adding the actual functionality + -- for creating new windows. + -- applicationSetAccelsForAction app "app.newwin" ["N"] void $ onNotebookPageRemoved note $ \_ _ -> do pages <- notebookGetNPages note diff --git a/src/Termonad/XML.hs b/src/Termonad/XML.hs index baf27e2..9ec1cc5 100644 --- a/src/Termonad/XML.hs +++ b/src/Termonad/XML.hs @@ -56,10 +56,15 @@ menuDoc = File
+ + New _Tab win.newtab diff --git a/termonad.cabal b/termonad.cabal index f247dda..767a8d1 100644 --- a/termonad.cabal +++ b/termonad.cabal @@ -1,5 +1,5 @@ name: termonad -version: 4.5.0.0 +version: 4.6.0.0 synopsis: Terminal emulator configurable in Haskell description: Termonad is a terminal emulator configurable in Haskell. It is extremely