From 1e7b742d2f9d4d50a95969412a92f3ed4cf94640 Mon Sep 17 00:00:00 2001
From: Pranav Jerry <libreinator@disroot.org>
Date: Sun, 23 Feb 2025 21:41:47 +0530
Subject: [PATCH] support opening job on user's browser

use tab to select the jobs and press enter to open on browser
---
 jobsearch.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jobsearch.sh b/jobsearch.sh
index 20d44e5..d6d12cc 100755
--- a/jobsearch.sh
+++ b/jobsearch.sh
@@ -1,3 +1,3 @@
 #!/usr/bin/env sh
 
-./infopark.py | fzf --preview 'w3m -dump -insecure https://infopark.in/company-jobs/details/{1} | tail -n +40 | head -n -53'
+./infopark.py | fzf --multi --preview 'w3m -dump -insecure https://infopark.in/company-jobs/details/{1} | tail -n +40 | head -n -53' | sed 's/ .*//' | xargs -I _ xdg-open https://infopark.in/company-jobs/details/_
-- 
GitLab