summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-06-01 10:28:04 -0500
committerluxagraf <sng@luxagraf.net>2023-06-01 10:28:04 -0500
commit87fbfbf4b1feaf352bc145a0530b0dfeab34b46b (patch)
treea809b7fd761581baf7957a50639b5d6439976757
parent34ca1b6676fa70557f15863979161d5a7c13a430 (diff)
added a bunch of new scripts and helpers for w3m, newsboat, and tmux
-rw-r--r--.bash_history272
-rw-r--r--.bashrc1
-rw-r--r--.config/newsboat/config10
-rw-r--r--.config/openbox/rc.xml2
-rw-r--r--.tmux.conf1
-rw-r--r--.w3m/RestoreSession.txt30
-rwxr-xr-x.w3m/bin/w3mlastsession3
-rw-r--r--.w3m/bookmark.html1
-rw-r--r--.w3m/cgi-bin/restore_session.cgi_51
-rw-r--r--.w3m/config2
-rw-r--r--.w3m/cookie11
-rw-r--r--.w3m/keymap63
12 files changed, 420 insertions, 27 deletions
diff --git a/.bash_history b/.bash_history
index e216389..402f2f3 100644
--- a/.bash_history
+++ b/.bash_history
@@ -39961,3 +39961,275 @@ v .w3m/config
cd .dotfiles/
#1685559508
gs
+#1685559511
+vim
+#1685559614
+gs
+#1685559628
+cd
+#1685556589
+ranger .w3m/cgi-bin/
+#1685548363
+ranger
+#1685559671
+fdisk -l
+#1685559679
+sudo mount -o rw /dev/sdd1 /mnt/card
+#1685560282
+ranger inbox/
+#1685560331
+sudo umount /mnt/card
+#1685560935
+yay -Ss Carbonyl
+#1685560946
+yay -S carbonyl-bin
+#1685561227
+carbonyl
+#1685561905
+yay -Rns carbonyl-bin
+#1685561921
+yay -S browsh
+#1685562560
+browsh
+#1685562658
+browsh --firefox.withgui
+#1685562666
+browsh --firefox.with_gui
+#1685562674
+browsh --firefox.with-gui
+#1685562797
+ll
+#1685562812
+browsh
+#1685562964
+yay -Rns browsh
+#1685563375
+w3m gmail.com
+#1685560359
+ranger
+#1685565073
+chmod +x ~/.w3m/cgi-bin/restore_session.cgi
+#1685565085
+v /.bashrc
+#1685565089
+v .bashrc
+#1685565114
+source .bashrc
+#1685565142
+v .w3m/keymap
+#1685563396
+v .w3m/keymap
+#1685565176
+w3m gmail.com
+#1685565376
+w3mlastsession
+#1685565394
+source .bashrc
+#1685565396
+w3mlastsession
+#1685566252
+v
+#1685566836
+yay -Ss rdrview
+#1685566842
+pac -Ss rdrview
+#1685566850
+yay -Ss rdrview
+#1685566855
+yay -S rdrview-git
+#1685567147
+mutt -s 'Subject of Mail' -a inbox/output.txt -- sng@luxagraf.net < bodyTextFile
+#1685567166
+mutt -s 'Subject of Mail' sng@luxagraf.net < inbox/output.txt
+#1685567176
+mutt
+#1685567473
+mutt -s 'output test' sng@luxagraf.net < inbox/output.txt
+#1685567476
+mutt
+#1685567315
+v .w3m/cgi-bin/
+#1685566600
+v .w3m/config
+#1685567575
+w3mlastsession
+#1685567715
+mutt
+#1685545611
+v lux/
+#1685567961
+mv inbox/output.txt ~/documents/travel/700HP-travco.txt
+#1685567521
+v .w3m/keymap
+#1685567978
+v .w3m/config
+#1685568234
+ranger in
+#1685568236
+ranger inbox/
+#1685568279
+v .w3m/bin/
+#1685568342
+ranger in
+#1685568344
+ranger inbox/
+#1685570422
+v bin/fzclip
+#1685570432
+v bin/fzsnip
+#1685570469
+xsel -ib "text"
+#1685570479
+test | xsel -ib
+#1685570488
+v bin/fzsnip
+#1685570553
+xclip "test"
+#1685570567
+xclip test
+#1685570579
+echo "test
+"|xlip
+#1685570587
+echo "test
+"|xclip
+#1685570606
+echo "test" | xclip
+#1685570625
+echo "newtest" | xsel -ib
+#1685569067
+newsboat
+#1685569034
+v .config/newsboat/config
+#1685571387
+/usr/bin/w3m "https://pmags.com/gear-review-sunblesa-h11-headlamp"
+#1685571862
+/usr/bin/w3m "https://www.ecosophia.net/on-magic-manhood-and-masculism/"
+#1685568306
+w3mlastsession
+#1685572082
+/usr/bin/w3m "https://www.frontporchrepublic.com/2023/05/what-tocqueville-couldnt-see/"
+#1685544539
+mutt
+#1685624869
+htop
+#1685626195
+v .config/newsboat/config
+#1685626403
+mkdir .config/newsboat/saved_articles
+#1685627191
+man newsboat
+#1685627195
+pac -S man
+#1685627208
+man newsboat
+#1685627371
+newsboat
+#1685627404
+v
+#1685627432
+ranger
+#1685627458
+ll
+#1685627486
+ll /
+#1685627417
+newsboat
+#1685627804
+cd ~/.config/newsboat/saved_articles/
+#1685627805
+ll
+#1685627766
+v
+#1685627860
+cd
+#1685627497
+ranger
+#1685629930
+tmux -V
+#1685629995
+v. .tmux.conf
+#1685630001
+v .tmux.conf
+#1685630187
+source .tmux.conf
+#1685630209
+v .config/openbox
+#1685630286
+openbox --reconfigure
+#1684860548
+mopen maya
+#1685629007
+/usr/bin/w3m "https://kyla.substack.com/p/the-time-premium"
+#1685627864
+newsboat
+#1685627260
+v
+#1685630470
+source .tmux.conf
+#1685630470
+source .tmux.conf
+#1685630512
+v
+#1685630520
+v .tmux.conf
+#1685630569
+display-popup -w 80% -E 'ls -la ~/ | fzf"
+#1685630577
+display-popup -w 80% -E "ls -la ~/ | fzf"
+#1685630663
+bind-key -n C-M-Space display-popup -w 80% -E "ls |fzf"
+#1685630665
+v .tmux.conf
+#1685631476
+./home/lxf/bin/tmuxsh/fzf-speed
+#1685631716
+pac -S locate
+#1685631726
+locate
+#1685631649
+v ~/.config/ranger/commands.py
+#1685630729
+ranger shownotes/
+#1685631823
+locate home | fzf -e -i --prompt='Select to open with ranger: ' --info=default --layout=reverse --tiebreak=index
+#1685631870
+locate /home/lxf/ | fzf -e -i --prompt='Select to open with ranger: ' --info=default --layout=reverse --tiebreak=index
+#1685631878
+locate
+#1685631882
+locate delos
+#1685632009
+updatedb
+#1685632013
+sudo mkdir .ssh
+#1685632024
+udo pdatedb
+#1685632027
+sudo pdatedb
+#1685632035
+sudo updatedb
+#1685632081
+locate delos
+#1685631783
+v
+#1685632123
+locate delos
+#1685632143
+locate home | fzf -e -i --prompt='Select to open with ranger: ' --info=default --layout=reverse --tiebreak=index
+#1685632128
+v
+#1685632292
+ranger bin/tmuxsh/
+#1685632694
+v
+#1685632732
+ranger ~/notes/saved_articles && tmux kill-pane
+#1685632729
+newsboat
+#1685633142
+ranger shownotes/
+#1685633251
+cd .dotfiles/
+#1685633252
+gs
diff --git a/.bashrc b/.bashrc
index e6d5819..b53e42b 100644
--- a/.bashrc
+++ b/.bashrc
@@ -628,3 +628,4 @@ yt () {
RIPGREP_CONFIG_PATH=~/.ripgreprc
GPG_TTY=$(tty)
export GPG_TTY
+[ -d "$HOME/.w3m/bin" ] && PATH="$HOME/.w3m/bin:$PATH"
diff --git a/.config/newsboat/config b/.config/newsboat/config
index 078ce52..63da899 100644
--- a/.config/newsboat/config
+++ b/.config/newsboat/config
@@ -8,6 +8,7 @@ ttrss-mode "multi"
ttrss-login "admin"
ttrss-password "hyperrealtranslinguis@34zaq"
ttrss-url "https://rss.luxagraf.net/"
+save-path ~/notes/saved_articles/
# vim-like navigation
bind-key j down
@@ -16,8 +17,12 @@ bind-key g home
bind-key G end
#macro y set browser "mpv %u" ; open-in-browser ; set browser "browser %u"
-macro y set browser "tsp yt-dlp %u"; open-in-browser ; set browser "$BROWSER %u"
-macro d set browser "yt-dlp %u &"; open-in-browser-noninteractively; set browser $BROWSER
+#macro y set browser "tsp yt-dlp %u"; open-in-browser ; set browser "$BROWSER %u"
+
+# copy url to download video using yt-dlp
+macro y set browser "echo %u | xsel -ib"; open-in-browser ; set browser "$BROWSER %u"
+macro w set browser "open-in-pane %u"; open-in-browser ; set browser "$BROWSER %u"
+macro s set browser "tmux split-window && tmux send-keys 'ranger ~/notes/saved_articles && tmux kill-pane\n'" ; open-in-browser ; set browser "$BROWSER %u"
confirm-mark-all-feeds-read no
confirm-mark-feed-read no
download-full-page yes
@@ -29,7 +34,6 @@ browser "$BROWSER"
#browser "firefox-developer-edition"
bind-key v open-in-browser-and-mark-read
#bind-key o open-in-browser-and-mark-read
-save-path ~/documents/articles
bind-key S save
reload-threads 4
diff --git a/.config/openbox/rc.xml b/.config/openbox/rc.xml
index 7c0637f..96073d3 100644
--- a/.config/openbox/rc.xml
+++ b/.config/openbox/rc.xml
@@ -183,7 +183,7 @@
<keybind key="A-F6">
<action name="MaximizeFull"/>
</keybind>
- <keybind key="C-A-space">
+ <keybind key="C-A-B">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
diff --git a/.tmux.conf b/.tmux.conf
index 43e0da7..47d73db 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -85,3 +85,4 @@ set -g @plugin 'tmux-plugins/tmux-yank'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
+bind-key Space capture-pane \; save-buffer /tmp/tmux-buffer \; display-popup -w 80% -E "/home/lxf/bin/tmuxsh/fzf-speed"
diff --git a/.w3m/RestoreSession.txt b/.w3m/RestoreSession.txt
new file mode 100644
index 0000000..698edae
--- /dev/null
+++ b/.w3m/RestoreSession.txt
@@ -0,0 +1,30 @@
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
+https://www.ecosophia.net/on-magic-manhood-and-masculism/
diff --git a/.w3m/bin/w3mlastsession b/.w3m/bin/w3mlastsession
new file mode 100755
index 0000000..4b26c43
--- /dev/null
+++ b/.w3m/bin/w3mlastsession
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+w3m -N \
+'https://www.ecosophia.net/on-magic-manhood-and-masculism/'
diff --git a/.w3m/bookmark.html b/.w3m/bookmark.html
index de08401..37b2f4c 100644
--- a/.w3m/bookmark.html
+++ b/.w3m/bookmark.html
@@ -4,6 +4,7 @@
<h2>Personal</h2>
<ul>
<li><a href="https://luxagraf.net/">Luxagraf: thoughts on ecology, culture, travel, photography, walking and other ephemera</a>
+<li><a href="https://live.luxagraf.net/admin/">Luxagraf Admin</a>
<!--End of section (do not delete this comment)-->
</ul>
</body>
diff --git a/.w3m/cgi-bin/restore_session.cgi_ b/.w3m/cgi-bin/restore_session.cgi_
new file mode 100644
index 0000000..8b840fb
--- /dev/null
+++ b/.w3m/cgi-bin/restore_session.cgi_
@@ -0,0 +1,51 @@
+#!/usr/bin/env sh
+# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
+# https://www.youtube.com/user/gotbletu
+# DESC: generate a script for your last w3m session then you can run script to restore all urls in new tabs
+# DEMO: https://youtu.be/qYhNJ3itqWw
+# DEPEND: coreutils gawk sed
+# REQD: 1. chmod +x ~/.w3m/cgi-bin/restore_session.cgi
+# 2. $EDITOR ~/.bashrc
+# [ -d "$HOME/.w3m/bin" ] && PATH="$HOME/.w3m/bin:$PATH"
+# 3. $EDITOR ~/.w3m/keymap
+# ############################ Quit with confirmation request (QUIT)
+# keymap :q QUIT
+# keymap ZZ QUIT
+# ############################ Quit at once (EXIT)
+# keymap ZQ EXIT
+# ############################ Quit at once and save session
+# keymap Q COMMAND "EXTERN 'echo %s > ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; READ_SHELL ~/.w3m/cgi-bin/restore_session.cgi ; EXIT"
+# 4. To load w3m with the last session
+# $ w3mlastsession
+
+# CLOG: 2021-05-15 remove multiple -N flag
+# 2021-04-17 first draft, no option to jump to tab 1 at the moment
+
+## ---------------------------------------------
+# location of generated script of last session
+mkdir -p "$HOME/.w3m/bin"
+RESTORE_SESSSION="$HOME/.w3m/bin/w3mlastsession"
+
+# add shell header
+echo "#!/usr/bin/env sh" > "$RESTORE_SESSSION"
+echo "w3m -N \\" >> "$RESTORE_SESSSION"
+
+# remove dupes without sorting and append trailing slash to each url
+awk '!x[$0]++' "$HOME/.w3m/RestoreSession.txt" | while read -r line ; do echo "'$line' \\" >> "$RESTORE_SESSSION" ; done
+
+# remove last trailing slash of the last line
+sed -i '$ s-.$--' "$RESTORE_SESSSION"
+
+chmod +x "$RESTORE_SESSSION"
+
+## OUTPUT SCRIPT FILE EXAMPLE ~/.w3m/bin/w3mlastsession
+## --------------------------------------------------
+## #!/usr/bin/env sh
+## w3m -N \
+## 'https://www.reddit.com/r/w3m/.mobile' \
+## 'https://www.reddit.com/r/commandline/.mobile' \
+## 'https://www.reddit.com/r/linux/.mobile' \
+## 'http://lite.cnn.com/en' \
+## 'https://raw.githubusercontent.com/tats/w3m/master/ChangeLog' \
+## 'https://github.com/gotbletu/shownotes'
+## --------------------------------------------------
diff --git a/.w3m/config b/.w3m/config
index 109b711..7acbcdc 100644
--- a/.w3m/config
+++ b/.w3m/config
@@ -13,7 +13,7 @@ display_image 0
ext_image_viewer 1
imgdisplay w3mimgdisplay
-color 1
+eolor 1
basic_color terminal
anchor_color green
image_color cyan
diff --git a/.w3m/cookie b/.w3m/cookie
index 2c4cd43..e6ab5e7 100644
--- a/.w3m/cookie
+++ b/.w3m/cookie
@@ -1,3 +1,10 @@
-https://www.google.com/search?q=wired NID 511=j940M1piUAH3qHBInanL_hxZTMS71r6sHjd6gLudyuLPzaY-ooRUb0D8AywQjLg0uwHWWYG3CBHuDdYrhbMbp2xa_hig1E9BRYiUmzv9lUa-Q64vkfN6AbOEek5H_K228Yasp_vQgHqDd275q5tCZgQjpNQspgqAJcwk8usfFwo 1701367907 .google.com / 13 0
+https://www.reddit.com/r/w3m/?rdt=35076 csv 2 1748638367 .reddit.com / 15 0
+https://www.reddit.com/r/w3m/?rdt=35076 token_v2 eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJleUpoYkdjaU9pSlNVekkxTmlJc0ltdHBaQ0k2SWxOSVFUSTFOanB6UzNkc01ubHNWMFZ0TWpWbWNYaHdUVTQwY1dZNE1YRTJPV0ZGZFdGeU1ucExNVWRoVkd4amRXTlpJaXdpZEhsd0lqb2lTbGRVSW4wLmV5SnpkV0lpT2lKc2IybGtJaXdpWlhod0lqb3hOamcxTmpVeU56ZzBMalUyT0RRNE55d2lhV0YwSWpveE5qZzFOVFkyTXpnMExqVTJPRFE0Tml3aWFuUnBJam9pUjJ0RFVGRmpUSFJ4VTBwc1VWSXdkWEJaWDB4VE5ucHBXWEJuU21GUklpd2lZMmxrSWpvaU9YUk1iMFl3YzI5d05WSktaMEVpTENKc2FXUWlPaUowTWw5aloyc3dOSE0xY3pBaUxDSnNZMkVpT2pFMk9EVTFOall6T0RRMU5qY3NJbk5qY0NJNkltVktlR3RyWkVkUE9VTkJTV2hrTFVaaE5WOW5aalZWWDIwME1WWlBhMDVYY0ZGSWMxcE9OUzFaZVhWa1NtNTJWa0V0WkZRMFpsRmZXVWt4VlVsTlFrZENRVVpwVTNSNVlsRlpRV3R0UkU5YVVXZEVUVTVFY0hKcFUxRlJORVZzY1V4SE9FbFJRbTFpYTFFeFdtRk5ZMkZYTTNkblFrdHBZMFUzWlZaSWNHTXliMkZWWW1rMU5HUjJObkI1VEdwNWNFOVZabXd6VG1wdFRGZDRVRGxFVFdKeE1ESndWMDVhVkcxalVqRndXRkZYVEY5dldrODVVek01ZFZWNlgxTmhNRkk0VDB0eGRrZENiM2xOV1RoZlNGcFhUVnBwUjNabWVHNXdjakJhUmpCM2NUY3pURkZYY0dZMmNrYzNPV3RYVkRCRVN6UmZVbmgyZGtSaFZFZFlTbVZ0Y0RkU1gzUXpNVk10YWtGUVkxOU1PVTV4UWtkaGRqZFljbkowVjJKMFh6RlJOVlY2YVdwU1YwcDZORTVDZVRWamRtdGxkbmRVWWs1bGJHWTBNMXByVEV3MFdtTmtUV0ptYlhNMlQyNUtlRFIwUTI0NFpsVmlRVUZFWDE4eE9GTXlSa1VpTENKbWJHOGlPakY5LkxiMWZoMkFtQmF5ZVFwVmdDOW5XMzV3T2gwdWUtMHlYMU91X2UwR1puT21OSU1DQUFyeXdIOXdwb1I5MzBYQU1wc0R4QU5DZzZhd2pTTnJWb0ZpRjFQa3RmczY1N01nZ0NBaDd6SjBuWjlLSTR1TWZSdThHZ2dPbXJNVFlTelBHT21BYXk3RzB3NzFCTWlwZG5UaVFOT1d5YmpuenVLNGdlVDdwbDNMbU5Qa0lCbzRsTXJyTVBNTExWSmlFUjgxMVEyQUVuLUYyaEJxWnJteWxzMXF2cDNGWWpicDZMSXFoMlE2RDU2MVYxSVU2ZmxDOTNmSjh5X3pxa0hOc29QV0tjYk8wOUNrYUJpNTlCOWFsM2FFTG1oQURGT0RTRXo2WUNLbi1wOUlIYzlCUW9Nb1ZZVXAwdXJoRVMzc3FfUnN6SndkRHdvRjRLbGtyMDdHbndmbU03dyIsImV4cCI6MTY4NTY1MjY2NCwibG9nZ2VkSW4iOmZhbHNlLCJzY29wZXMiOlsiKiIsImVtYWlsIiwicGlpIl0sImNpZCI6Ijl0TG9GMHNvcDVSSmdBIn0.luQ83-SBV5Q6Gf-LeDYw6VRdOpVAK83ilCZkQqdi55o 1748724784 .reddit.com / 15 0
+https://www.reddit.com/r/w3m/?rdt=35076 loid 000000000cgk04s5s0.2.1685566384000.Z0FBQUFBQmtkN093QnpVQ29XaEVmV1d6OWRsSWFTVWVzWmJSMDVxTFBDaHZyZjJKTHMtMXRsR21wWXJiTFgyclNERHpzZmx5V0psd2tYWHh3bmtpeTQ5bU4wdDduV25HMVA1OEdxb3k2dnJnVTh2a1ZWbGhEWEJiNnlEdGRsY1VpUWdpTjhiNHkxN1Q 1748724784 .reddit.com / 15 0
+https://www.reddit.com/r/w3m/ edgebucket oXR8ApfDR8u1RdiuUN 1748638365 .reddit.com / 15 0
+https://live.luxagraf.net/admin/login/?next=/admin/ sessionid n7yyh61th14mt4hay3ye88t8zvdm33ov 1686774880 live.luxagraf.net / 9 0
+https://live.luxagraf.net/admin/django_comments/comment/ csrftoken swASPTeQxylciUzDJbQUV7tJVbYnx3xvoqHNzVg1b3Caqi077RxUmyWKYLdESGKv 1717017787 live.luxagraf.net / 9 0
+https://accounts.google.com/v3/signin/identifier?dsh=S403373221%3A1685565201881476&continue=https%3A%2F%2Fmail.google.com%2Fmail%2Fu%2F0%2F&emr=1&followup=https%3A%2F%2Fmail.google.com%2Fmail%2Fu%2F0%2F&ifkv=Af_xneF0EfaXyOPJW5zZts2wnfVeYZEQc3i6Wl-503T9AzurZUJOGABRVB9MC-tRx-DI1NsUO60zmA&osid=1&passive=1209600&service=mail&flowName=WebLiteSignIn&flowEntry=ServiceLogin __Host-GAPS 1:OHvxJLCYbB_aAhOp43SMf_oxycNrag:hlT0uPYmvLfeYrPI 1748637202 accounts.google.com / 11 0
+https://www.google.com/search?q=w3m+reddit NID 511=ClN7W5O5GH3tky0G0HBP4QxB-fVKU6UZBF1mX5qb-FZgnLn64z0B4hBYYLTuRIxT5OY_FeUiZMpkU2Ac4nmdkLhyT83n4yL70CVd-Jx_1ZVXK5eqtzE4bdHZ2hJ_BGtLUnZJteNkLZGB8oileQA8MULwfLxVnDb67l_Z2UqTPNE 1701377579 .google.com / 13 0
https://www.google.com/search?q=wired AEC AUEFqZecdwRSl9abswjtH56D7k7RmNOARy0rc6cHEbNy7rEco_kuymoY9Rs 1701108707 .google.com / 15 0
-https://www.google.com/search?q=wired 1P_JAR 2023-05-31-18 1688148707 .google.com / 15 0
+https://www.google.com/search?q=w3m+reddit 1P_JAR 2023-05-31-20 1688158379 .google.com / 15 0
diff --git a/.w3m/keymap b/.w3m/keymap
index 18cb2c1..225512e 100644
--- a/.w3m/keymap
+++ b/.w3m/keymap
@@ -59,14 +59,6 @@ keymap Q NULL
keymap C-w NULL
keymap C-d NULL
keymap C-u NULL
-keymap RIGHT NULL
-keymap l NULL
-keymap LEFT NULL
-keymap h NULL
-keymap j NULL
-keymap DOWN NULL
-keymap k NULL
-keymap UP NULL
keymap C-e NULL
keymap C-y NULL
keymap 0 NULL
@@ -162,8 +154,8 @@ keymap ef PEEK_LINK #Show link under cursor.
#Open current link with external browser = sensible browser
keymap M-o EXTERN
#copy current url and remove newline at the end.
-keymap yy EXTERN copy_url.sh
-#keymap yy EXTERN "echo -n %s | xclip -i -selection clipboard"
+#keymap yy EXTERN copy_url.sh
+keymap yy EXTERN "echo -n %s | xclip -i -selection clipboard"
#keymap yy EXTERN "echo -n %s | xsel -b"
#open link under cursor with external browser = sensible browser
keymap M-p EXTERN_LINK
@@ -177,28 +169,26 @@ keymap P TAB_GOTO /usr/lib/w3m/cgi-bin/goto_clipboard.cgi
keymap F TAB_LINK #Follow link in a new foreground tab
#follow link under cursor in new background tab
#keymap COMMAND "TAB_LINK ; PREV_TAB"
-keymap f GOTO_LINK #Follow link in current tab
+keymap f GOTO_LINK
+#Follow link in current tab
keymap C-j GOTO_LINK #Follow link (Enter = Ctrl+j)
#scrolling....................................................................
#pager-like scrolling.
-keymap k DOWN
-keymap j UP
-keymap l RIGHT
-keymap h LEFT
keymap gg BEGIN #Go to the top.
#go to line number 5 "5G"
keymap G END #Go to the end.
#keymap C-d NEXT_PAGE
#keymap C-u PREV_PAGE
#Av. Pag = M-[6~ Re. Pag = M-[5~
-keymap M-[6~ NEXT_PAGE
-keymap M-[5~ PREV_PAGE
keymap SPC NEXT_PAGE
#map Shift + space PREV_PAGE note: this is not present in default keymap
#Remap PageUp to Shitf + Space
#URxvt.keysym.Shift-space: \033[5~
keymap zz CENTER_V #center vertical-screen in cursor position
+keymap J PREV_TAB
+keymap K NEXT_TAB
+keymap C-w CLOSE_TAB
#-bookmarks....................................................................
keymap C-d ADD_BOOKMARK #Add current page to bookmarks
@@ -276,10 +266,43 @@ keymap C-x COMMAND "SET_OPTION fold_line=toggle ; RESHAPE"
#
#
# My custom bindings
-keymap C-p COMMAND "SAVE_SCREEN /home/lxf/inbox/output.txt"
-# Open current buffer in an external browser (app)
-keymap pp COMMAND "PRINT /home/lxf/inbox/new.txt && mutt -s 'Article'"
+keymap C-p COMMAND "SAVE_SCREEN /home/lxf/inbox/output.txt && mutt -s 'output test' sng@luxagraf.net < /home/lxf/inbox/output.txt"
+keymap M-p COMMAND "SAVE_SCREEN /home/lxf/inbox/%s.txt"
## fzf search of commands
keymap xx COMMAND "READ_SHELL ~/.w3m/cgi-bin/fnx_fzfmiru.cgi ; BACK ; GOTO file:/cgi-bin/fnx_execute.cgi ; BACK"
keymap sg COMMAND "SET_OPTION dictcommand=file:///cgi-bin/omnibar_google.cgi ; DICT_WORD"
keymap sb COMMAND "SET_OPTION dictcommand=file:///cgi-bin/omnibar_brave.cgi ; DICT_WORD"
+
+# Navigate back without deleting current buffer
+keymap B PREV
+keymap < PREV
+keymap LEFT PREV
+
+# Navigate forward without deleting current buffer
+keymap > NEXT
+keymap RIGHT NEXT
+
+# Display current buffer URL
+keymap c PEEK
+
+# Pop-up menu with open buffers
+keymap b SELECT_MENU
+
+#### toggle hinting mode (vimium similar)
+keymap f-SPC COMMAND "SET_OPTION display_link_number=toggle ; RESHAPE"
+#### jump to link number (e.g press 3ff) and hide hinting mode (similar to gg in vim)
+keymap ff COMMAND "SET_OPTION display_link_number=0 ; RESHAPE ; LINK_BEGIN"
+#### open current cursor link in new tab and hide hinting mode
+keymap ft COMMAND "SET_OPTION display_link_number=0 ; RESHAPE ; TAB_LINK"
+#### copy link to clipboard (e.g press f-SPC then 4fy to yank url)
+keymap fy COMMAND "SET_OPTION display_link_number=0 ; RESHAPE ; LINK_BEGIN ; EXTERN_LINK 'url=%s ; printf "%b" "$url" > /tmp/clipbrd.txt ; printf "%b" "$url" | xsel -b 2>/dev/null ; printf "%b" "$url" | tmux load-buffer - ; printf '%s' "$url" | wl-copy 2>/dev/null ; printf '%s' "$url" | clip 2>/dev/null ; printf '%s' "$url" > /dev/clipboard 2>/dev/null ; printf '%s' "$url" | pbcopy 2>/dev/null ; printf '%s' "$url" | termux-clipboard-set 2>/dev/null'"
+#### jump to link number and open it
+keymap fo COMMAND "SET_OPTION display_link_number=0 ; RESHAPE ; LINK_BEGIN ; GOTO_LINK"
+#### jump to link number and open it in new tab
+keymap fn COMMAND "SET_OPTION display_link_number=0 ; RESHAPE ; LINK_BEGIN ; TAB_LINK"
+# yank url to multiple clipboard (under cursor)
+#keymap yy EXTERN_LINK "url=%s ; printf "%b" "$url" > /tmp/clipbrd.txt ; printf "%b" "$url" | xsel -b 2>/dev/null ; printf "%b" "$url" | tmux load-buffer - ; printf '%s' "$url" | wl-copy 2>/dev/null ; printf '%s' "$url" | clip 2>/dev/null ; printf '%s' "$url" > /dev/clipboard 2>/dev/null ; printf '%s' "$url" | pbcopy 2>/dev/null ; printf '%s' "$url" | termux-clipboard-set 2>/dev/null"
+# yank url to multiple clipboard (current page)
+#keymap YY EXTERN "url=%s ; printf "%b" "$url" > /tmp/clipbrd.txt ; printf "%b" "$url" | xsel -b 2>/dev/null ; printf "%b" "$url" | tmux load-buffer - ; printf '%s' "$url" | wl-copy 2>/dev/null ; printf '%s' "$url" | clip 2>/dev/null ; printf '%s' "$url" > /dev/clipboard 2>/dev/null ; printf '%s' "$url" | pbcopy 2>/dev/null ; printf '%s' "$url" | termux-clipboard-set 2>/dev/null"
+
+keymap Q COMMAND "EXTERN 'echo %s > ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; READ_SHELL ~/.w3m/cgi-bin/restore_session.cgi ; EXIT"