Support locating the notebook and directory of current note. Signed-off-by: Le Tan <tamlokveer@gmail.com>