/deno-bridge-echo

An efficient tool developed using deno-bridge for easily copying web page URLs from browsers like Firefox, Chrome, and Safari directly within Emacs.

Primary LanguageTypeScript

deno-bridge-echo

feature

  • Save the current visited tab information to a local HTTP serve

./images/Tab-sync-flow-chart.svg

skinparam svgLinkTarget _parent
@startuml
actor User

User -> Firefox: Access page
Firefox -> "HTTP Server": POST /v1/echo, URL and Title Information

"HTTP Server" -> "HTTP Server": Save Information
User -> Emacs: "Execute my/insert-jsno-link"
Emacs -> "HTTP Server":GET /v1/show Retrieve Latest Tab Information
"HTTP Server" -> Emacs:url and title
Emacs -> Emacs: Assemble link and insert at cursor position
@enduml

requirement

install

user script

Please install the user script located at the following link Click To Install

https://github.com/nailuoGG/deno-bridge-echo/raw/main/script.user.js

Doom Emacs

edit package.el

(package! deno-bridge-echo
  :ignore t
  :recipe (:host github :repo "nailuoGG/deno-bridge-echo"
           :files ("*.el" "*.ts")))

edit config.el

(use-package! deno-bridge-echo
  :config
  (defun my/insert-deno-link ()
    "Insert recently visited Tab from browser"
    (interactive)
    (deno-bridge-call "deno-bridge-echo" "getCurrentTab")))

usage

apidescription
my/insert-deno-linkinsert link from current visited tab