Skip to content

Commit

Permalink
code exec on ctrl+e
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Jun 21, 2021
1 parent eae6b6f commit f6fecdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/code_blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Slides allows you to execute code blocks directly inside your slides!

Just press `e` and the result of the code block will be displayed as virtual
Just press `ctrl+e` and the result of the code block will be displayed as virtual
text in your slides.

Currently supported languages:
Expand Down
2 changes: 1 addition & 1 deletion internal/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.Page--
}
m.VirtualText = ""
case "e":
case "ctrl+e":
// Run code block
block, err := code.Parse(m.Slides[m.Page])
if err != nil {
Expand Down

0 comments on commit f6fecdc

Please sign in to comment.