From 7de87e1cc569b042f2ecb00b65dcf65c9aae0c9f Mon Sep 17 00:00:00 2001 From: Tim Harding Date: Thu, 21 Mar 2024 20:40:40 -0700 Subject: [PATCH] Added fullscreen keymap to readme --- .github/workflows/ci.yml | 4 +++- README.md | 17 ++++++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 286d5b3..afa353f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,9 @@ name: Publish release on: - workflow_dispatch: + push: + tags: + - '*' permissions: contents: write diff --git a/README.md b/README.md index 90549f8..3223c53 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ discoverability. -- lazy.nvim example: { 'tim-harding/neophyte', - tag = '0.2.2', + tag = '0.2.4', event = 'VeryLazy', opts = { -- Same as neophyte.setup({ ... }) @@ -115,8 +115,7 @@ neophyte.setup({ -- Alternatively, the guifont option is supported: vim.opt.guifont = 'Cascadia Code PL:w10, Symbols Nerd Font, Noto Color Emoji' --- There are also freestanding functions to set these options as desired. --- Below is a keymap for increasing and decreasing the font size: +-- There are also freestanding functions to set these options as desired: -- Increase font size vim.keymap.set('n', '', function() @@ -128,17 +127,21 @@ vim.keymap.set('n', '', function() neophyte.set_font_width(neophyte.get_font_width() - 1) end) +-- Use cmd-ctrl-f to toggle fullsreen on MacOS +if this_os:find('Darwin') then + vim.keymap.set('n', '', function() + neophyte.set_fullscreen(not neophyte.get_fullscreen()) + end) +end + -- Neophyte can also record frames to a PNG sequence. -- You can convert to a video with ffmpeg: -- -- ffmpeg -framerate 60 -pattern_type glob -i '/my/frames/location/*.png' --- -pix_fmt yuv422p -c:v libx264 -vf +-- -pix_fmt yuv420p -c:v libx264 -vf -- "colorspace=all=bt709:iprimaries=bt709:itrc=srgb:ispace=bt709:range=tv:irange=pc" -- -color_range 1 -colorspace 1 -color_primaries 1 -crf 23 -y /my/output/video.mp4 - --- Start rendering neophyte.start_render('/directory/to/output/frames/') --- Stop rendering neophyte.end_render() ```