notespace icon indicating copy to clipboard operation
notespace copied to clipboard

adding a `print to echo area` method of emacs-config.el

Open zcaudate opened this issue 4 years ago • 8 comments

functions like notespace/init-with-browser and notespace/init https://github.com/scicloj/notespace/blob/master/emacs-config.el#L32

could be better off with printing being in the echo area as opposed to at the cursor.

removing the callback will suffice.

(defun notespace/cider-interactive-eval (code)
  (interactive)
  (message code)
  (cider-interactive-eval
   code
   nil
   nil
   nil))

zcaudate avatar Jul 17 '21 17:07 zcaudate

Hi, @zcaudate !

Many thanks, sounds good, I haven't known about these Emacs subtleties.

Would you look to submit a PR. I can also push this -- whichever you prefer.

daslu avatar Jul 18 '21 10:07 daslu

I haven't tried out all of notespace's features so it may be better that you tinker with the config to figure out which methods you may prefer to print at cursor and which you want to print on the echo area.

Watching how you use it on some of the videos, it feel more natural than a pure jupyter style notebook workflow as you're building the notebook as opposed to programming within it. It's really well done.

Are nested notespace supported? - ie, putting one notespace inside another one (like latex)

zcaudate avatar Jul 18 '21 15:07 zcaudate

is there a way to display animations like these?

https://nullprogram.com/blog/2020/04/30/

zcaudate avatar Jul 18 '21 15:07 zcaudate

Thanks, @zcaudate. I'll do the changes as you suggested.

There is some experimental support for animations using Quil -- see the tutorial: https://scicloj.github.io/notespace/doc/notespace/v3-experiment1-test/index.html

daslu avatar Jul 18 '21 21:07 daslu

There isn't yet a notion of nested notespaces. :)

daslu avatar Jul 18 '21 21:07 daslu

sweet. it's very cool.

are all the js dependencies loaded at the very beginning or are they injected depending on the note that is sent?

zcaudate avatar Jul 19 '21 04:07 zcaudate

Currently at Notespace, the client-side is one compiled bundle of dependencies.

Upcoming tools such as Goldly and Clerk are separating client-side dependencies into modules so that some of them can load lazily.

If Notespace continues to exist (which may not be necessary if Goldly or Clerk actually fulfills all its goals better), then it should adopt this approach.

daslu avatar Jul 20 '21 19:07 daslu

sweet. thanks for that.

zcaudate avatar Jul 21 '21 23:07 zcaudate