šØ A quick update
A few months have somehow passed since the last newsletter. Iāve been very busy with client work recently and unfortunately had little time to make massive progress with new beorg features. There have been a few newsletters where mention has been made of the ādatabaseā in beorg. I have recently been working on writing a translator for the beorg search syntax into SQL queries. Once this is up and running Iām expecting a big speed boost to the Agenda and Tasks tab.
š§āš Tiny tip corner
Use the Save + button when creating lots of items. This works especially well with templates - here I have a template to log what food Iāve eaten, and tap Save + for each item until finished:
Tap the ? button when in the Agenda/Tasks search field to see a reference to the search syntax:
To quickly select multiple tasks hold down two fingers close together and swipe down the task list:
š Customizing the text editing toolbar
The text editor in beorg, used for both notes and editing entire files, has a handy toolbar shown above the keyboard:
The buttons can be changed with a bit of beorg magic šŖ. This magic can be yours to control with an init.org file and a little bit of Scheme coding.
Iām going to create a new toolbar which has buttons to:
Move the cursor to the start of the text
Move to the end of the text
Show a list of phrases that beorg can insert
When working with this level of beorg customization you are best off editing the init.org file on your computer (or using an external keyboard with your iPhone/iPad.) If you donāt have an init.org file already create one by:
Select the Files tab in beorg
Tap the + button top left on the screen
Type init and then tap Create File (donāt add the .org)
Long press the newly created file and choose Open With Text Editorā¦
Letās start with creating a toolbar with just one button to jump to the top of the file. Add the following to your init.org:
* Toolbar
#+begin_src scheme
(set! editor-toolbar-items '(("icon-up" (goto-char 1)))
#+end_src
In case you arenāt familiar with customizing beorg like this here is a breakdown of what you can see above:
The
* Toolbar
is just a headline, used to help organize the file#+begin_src scheme
tells beorg there is some Scheme code to follow(set! editor-toolbar-items
is an instruction to set the value of the variable editor-toolbar-items'(
is the start of a list of items("icon-up" (goto-char 0))
is the toolbar item, with an icon named icon-up and the code(goto-char 0)
telling the editor to put the cursor at the very start of the text being edited.There is a
)
to end the list of toolbar itemsFinally the
#+end_src
tells beorg we have finished wi,th our block of code
Adding a button to go to the end of the text is slightly trickier, but not much:
(set! editor-toolbar-items '(("icon-up" (goto-char 1))
("icon-down" (goto-char (point-max))))
Here the 0 is replaced with a call to the function point-max
which returns the last position in the text being edited.
The list of phrases button is a little more complex still. First a new function needs to be created to show an action-sheet with the phrases in:
(define (show-phrases) (sheet '(("My Name" (insert "Matthew Kennard"))
("beorg website" (insert "https://beorg.app"))
("Favorite color" (insert "blue")))))
Just like the list of toolbar items this one provides a list to the sheet function. Each item in the list specifies the text to display in the action-sheet, and then a command to run when selected. Here all the commands just insert some text where the cursor is.
Adding this to the toolbar results in the following complete init.org:
* Toolbar
#+begin_src scheme
(define (show-phrases) (sheet '(("My Name" (insert "Matthew Kennard"))
("beorg website" (insert "https://beorg.app"))
("Favorite color" (insert "blue")))))
(set! editor-toolbar-items '(("icon-up" (goto-char 1))
("icon-down" (goto-char (point-max)))
("icon-star" (show-phrases))))
#+end_src
Hereās how the toolbar looks:
If you would like to personalize your text editing toolbar in beorg check out the following useful links:
Names of the editor toolbar icons you can use - if you donāt see an icon you like you can use an emoji or other text
TIP: If you have smart quotes turned on, youāll probably want to turn them off when editing your init.org.
š Thanks for reading
If you want to help support future beorg development there are several ways you can help:
šŖ Take out a subscription to beorg Premium or purchase beorg extensions (depending on whether you prefer subscriptions or one-off purchases)
ā¤ļø Use the tip buttons at the bottom of the Settings tab
š Mention beorg to others on social media, or write a blog post about how beorg is useful to you