fn launch_url(&self, url: Url) {
        if self.ctx.mouse().block_url_launcher {
            return;
        }

        if let Some(ref launcher) = self.ctx.config().ui_config.mouse.url.launcher {
            let mut args = launcher.args().to_vec();
            let start = self.ctx.terminal().visible_to_buffer(url.start());
            let end = self.ctx.terminal().visible_to_buffer(url.end());
            args.push(self.ctx.terminal().bounds_to_string(start, end));

            match start_daemon(launcher.program(), &args) {
                Ok(_) => debug!("Launched {} with args {:?}", launcher.program(), args),
                Err(_) => warn!("Unable to launch {} with args {:?}", launcher.program(), args),
            }
        }
    }
/// Spawn URL launcher when clicking on URLs.
Spawn URL launcher when clicking on URLs.
Spawn URL launcher when clicking on URLs .
fn launch_url(&self, url: Url) {
        if self.ctx.mouse().block_url_launcher {
            return;
        }
        if let Some(ref launcher) = self.ctx.config().ui_config.mouse.url.launcher {
            let mut args = launcher.args().to_vec();
            let start = self.ctx.terminal().visible_to_buffer(url.start());
            let end = self.ctx.terminal().visible_to_buffer(url.end());
            args.push(self.ctx.terminal().bounds_to_string(start, end));
            match start_daemon(launcher.program(), &args) {
                Ok(_) => debug!("Launched {} with args {:?}", launcher.program(), args),
                Err(_) => warn!("Unable to launch {} with args {:?}", launcher.program(), args),
            }
        }
    }
fn launch_url ( & self , url : Url ) { if self . ctx . mouse ( ) . block_url_launcher { return ; } if let Some ( ref launcher ) = self . ctx . config ( ) . ui_config . mouse . url . launcher { let mut args = launcher . args ( ) . to_vec ( ) ; let start = self . ctx . terminal ( ) . visible_to_buffer ( url . start ( ) ) ; let end = self . ctx . terminal ( ) . visible_to_buffer ( url . end ( ) ) ; args . push ( self . ctx . terminal ( ) . bounds_to_string ( start , end ) ) ; match start_daemon ( launcher . program ( ) , & args ) { Ok ( _ ) => debug ! ( " " launcher program ( ) args ) , Err ( _ ) => warn ! ( " " launcher program ( ) args ) , } } }
Spawn URL launcher when clicking on URLs.
Spawn URL launcher when clicking on URLs .
&self
url
Url
&self
url
Url