Connect notes automatically by matching primary and foreign keys or aliases placed inside %%primarykeys ...%% and %%foreignkeys ...%% markers. Create or update a block of links between those markers with the Synchronize links by keys command, using case-insensitive keys and optional filename-based keys (spaces become _).