Allow to contextualize capture and agenda commands by checking the name of the buffer