-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement of instructions and editing web with emacs #4
Comments
thanks for sharing how you made it work: I will review the README with your instructions :) About your question, I think the default keybindings of Nyxt may be different: you are looking for the command I set Emacs as my external editor in Nyxt like this
|
Found it yesterday that there is such 'edit-with-external-editor' command in Nyxt browser and also that it's no need to install sly package for it. It would be cool to have small function for Nyxt to copy url of the webpage as org-mode link. Don't need webpage title url in formatted as org capture template always . But orgmode formatted url pagetitle is handy in many cases. The process of submitting text to a web form is not smooth. Emacs opens a temporary file and only when it is saved the text is sent to the browser. I would like to work from a permanent file, send only the selected text from the file, without the requirement to save, and the like. |
Well you can edit Nyxt to do what you want. You need Sly or Slime to send text to Nyxt if you start from Emacs. When you use If I understand things right, you would like to be in Nyxt, browse around, click on a text area, then switch to Emacs and send parts of a file to that text area, correct? |
I would like to do something in didderent domension. Being in Case study example org file : you've posted several job postings on several freelance site . You have some specific info for each site, some questions, some notes. But they are all related to 1 goal and should be in 1 static file . More it all can be just a small part (deep subtree) of big file. |
mmm, it would be easier if you start from a command (I am not sure how
to handle the on-clicl menu).
This command should implement in the Nyxt prompt something like
helm-org-rifle (https://github.com/alphapapa/org-rifle) and let you
insert the content of an Org Mode subtree.
Maybe reimplementing org-rifle in CL could be expensive though: so maybe
it is just easier to make your command choose an Org Mode file and add
the headings contents in the list of candidates of the prompt. That again
seems pretty doable to me!
…On Sat 12 Feb 2022 at 11:10, MorphicResonance ***@***.***> wrote:
I would like to do something in didderent domension. Being in `edit-with-external-editor` . Click on text area in nyxt and be able insert just selected text from static .org file (not just temp file with random name) or just text from selected org node.
Case study example [org file](https://pasteboard.co/ZLjRBOzpsxlL.png)
|
Try to implement the simpliest possible way because right now input from emacs to nyxt with undefined temp file looks like incomplete sdemo action. |
Thanks for raising the problem of directly passing text to and from the browser to emacs. So far, I have seen very few solutions for collecting information from a browser without a clipboard.
For example, Grasp firefox extension for org-capture gathers information into an org file on keystrokes. But the python configuration introduces unnecessary complexity into the organization and leads away from the required implementation "without additional layers". Emacs Everywhere still uses clipboard and some xdotool dependencies.
In emacs, this issue is sort of resolved automatically if you use the Emacs inbuild browser yourself. Unfortunately, it does not handle many sites.
Unfortunately, the instructions leave a lot to be desired. Despite the abundance of posts, there is no direct instruction on the installation process, no adjustments are made to the process yet.
How did I manage to install emacs-with-nyxt after looking for information in many places.
installed the sly package from melpa.
Added use via use-package to my emacs configuration file
(use-package sly :config (setq sly-lisp-implementations '((sbcl ("/usr/bin/sbcl")))) )
Run linux package manager which installed sbcl to /usr/bin/sbcl
Installed quicklisp as found it nned in the file emacs-with-nyxt.el. Detailed instructions on installation, fortunately, on the official site
added an auto-config.lisp file to ~/.config/nyxt and an emacs-with-nyxt.el file to the folder where my emacs packages are located (/contrib/ in my case).
Added a package call to my emacs configuration file
(use-package emacs-with-nyxt :ensure nil :load-path "~/.emacs.d/contrib/emacs-with-nyxt")
not finding a connection & following the advice of users, added a symlink from the /slynk subfolder to the subfolder where the sly package is located which was installed from melpa.
sudo ln -s ~/.local/share/nyxt/extensions/slynk/ ~/.emacs.d/elpa/sly-20220131.1646/slynk/
After that, the connection is created. The browser is controlled from emacs. You can send a command to open this or that url from emacs.
But the most hot part is how to send text directly from emacs into the browser.
From the one post where you are on the form in browser and typed
ctrl-x '
and it will open emacs, then typectrl-x #
and emacs will send some text to the form I don't see this happen.For example, opened google search form , typed
ctrl-x '
and just'
was put into search form. After pressingctrl-x #
I see message something like this 'no server editing buffer..' .What to do to actually send text from emacs to nyxt? Can text from any file wtih emacs be sent into nyxt?
The text was updated successfully, but these errors were encountered: