Skip to content
Francesco edited this page Mar 12, 2018 · 7 revisions

Notes has been introduced in t-ui beta 6.5.

Add a note

$ notes -add hello world

Remove a note

Two ways:

  1. By line: $ notes -rm 2 -> remove the note at the second line
  2. By starting string: $ notes -rm hel -> remove the first note starting with "hel" (case insensitive)

Note that t-ui will identify every integer (non-floating point number) as a line index.

Locking/Unlocking

This is useful to prevent a note to be cleared by the cmd $ notes -clear. The behavior is the same as notes -rm.

Footer/Header

You can use optional pattern in header/footer:
%(At least one note/No notes)

Example:
%( --- Notes ---/No notes) -> --- Notes --- or No notes

Also, you can use these special characters:

  • %n -> newline
  • %c -> notes count

Example:
%( --- Notes : %c ---%n/No notes) -> --- Notes : 3 --- or No notes

Notes special characters

  • %l -> is locked
  • %c -> notes count
  • %r -> row index (<%c)
  • %t -> creation time

Example:
notes -add [%t] Note %r/%c : Buy eggs and milk -> [Sat 02/24/18 11:42] Note 2/4 : Buy eggs and milk

Coloured notes

#rrggbb(note)

Example:
notes -add #aa0011(hello t-ui), how are you?

(Check also Defining Colors)

Links

You can save links as normal notes, and click on them later.

Example:
notes -add http://www.google.com

Sorting

  • 0: Time (up->down)
  • 1: time (down->up)
  • 2: alphabetical (up->down)
  • 3: alphabetical (down->up)
  • 4: locked before
  • 5: unlocked before

config -set notes_sorting [n]

Clone this wiki locally