Code Monkey home page Code Monkey logo

Comments (4)

raboof avatar raboof commented on June 28, 2024 1

@dalaidakkar great, thanks! so what needs to be done here is that we document this 😄

The lua console is 'notionflux' - @wilhelmy has recently done some great improvements to this tool. To get access to these improvements, you'll have to build Notion from source.

from notion.

wilhelmy avatar wilhelmy commented on June 28, 2024

I had some luck reattaching an accidentally detached (via the context menu) WGroupWS:

lua> ioncore.current():manager():manager():manager():manager()
WGroupWS: 0x7616f8
lua> s=ioncore.goto_next_screen()
nil
lua> s
WScreen: 0x764498
lua> ioncore.current():screen_of()
WScreen: 0x54b118
lua> s:attach( ioncore.current():manager():manager():manager():manager())
WGroupWS: 0x7616f8

This could be a basis for moving workspaces around between screens.

from notion.

dalaidakkar avatar dalaidakkar commented on June 28, 2024

you can already move and even nest workspaces inside a frame:

  1. go to workspace you want to detach
  2. context menu on any tab > workspace > toogle tag
  3. go to target workspace / frame
  4. menu on destiny frame tab > attach tagged
    (can get a little confusing at first) also first save your session in case you want to restore your previous layout just exit and log back.

How did you get that lua console? I want to make some kind of bash script including notion commands to manage frames/workspaces, is that possible?

from notion.

wilhelmy avatar wilhelmy commented on June 28, 2024

Injecting lua code is already possible without my pimped-up notionflux, by using the plain old notionflux. If you want to script notion (edit: from bash), you can use notionflux (old or new) to inject commands. (Edit: but I'd suggest to use lua for scripting, maybe build a utility library and call into that from bash via notionflux.)

As for attaching workspaces this way, unfortunately it's broken. Using the method you described I've found myself with two WGroupWSes attached where only one should be (and them behaving in a weird way), and it also doesn't allow for easy-access keybindings to change the order of workspaces.

Experiments like the one I posted above are exactly the reason I extended notionflux the way I did, you're welcome to try, but the recent changes are mostly about interactive use, not use within scripts.

from notion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.