Skip to content

Commit

Permalink
Added fullscreen keymap to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-harding committed Mar 22, 2024
1 parent 7c30164 commit 7de87e1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Publish release

on:
workflow_dispatch:
push:
tags:
- '*'

permissions:
contents: write
Expand Down
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({ ... })
Expand Down Expand Up @@ -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', '<c-+>', function()
Expand All @@ -128,17 +127,21 @@ vim.keymap.set('n', '<c-->', 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', '<DC-f>', 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()
```

Expand Down

0 comments on commit 7de87e1

Please sign in to comment.