Specific use case: if ( window_title.indexOf ( '.php') !== -1 ) type 'print_r' if ( window_title.indexOf ( '.js') !== -1 ) type 'console.log' The benefit would be that one keyboard shortcut could work across multiple file types. Really happy to find this extension regardless!