Is it necessary to select a path first, or can the plugin infer the path based on the cursor's location?