Code Monkey home page Code Monkey logo

Comments (7)

insilmaril avatar insilmaril commented on September 23, 2024 1

You could open the script editor and script output (e.g. Alt+S and A+Shift+S) and start with this (copied mostly from demos/scripts/iterating-branches.vys):

vym.clearConsole();
m1 = vym.currentMap();

m1.initIterator("foobar");
print ("Starting with branch: " + m1.getHeadingPlainText() );

while (m1.nextIterator("foobar") )
{
	print ("Selected branch: " + m1.getHeadingPlainText() );
	if (m1.isScrolled()) {
		print ("  is scrolled");
	}	
}

At the moment there is no command available returning the current depth(), I try to add that to the next beta-5, could be useful in that context

from vym.

insilmaril avatar insilmaril commented on September 23, 2024 1

For reference: The current code for collapsing in TreeEditor is in

void VymView::collapseUnselected()

from vym.

insilmaril avatar insilmaril commented on September 23, 2024

Cool, I am not the only power user :-)

Here's my approach to bigger maps (need to make a video one day to show this):

I have the TreeEditor open (usually left of the map). Select "Parent" and then press the "<" key - every subtree folds in the TreeEditor at least, which I mainly use for navigation. Similar if you would select "son" first: All siblings of parents would fold and also everything down to the son/daughter level.

Is that something you would need in the MapEditor, too?

Maybe could be scripted, or implemented in the code itself...

from vym.

aloparev avatar aloparev commented on September 23, 2024

Yeah, the way it works in TreeEditor is exactly how I imagine it for MapEditor too.

Maybe could be scripted, or implemented in the code itself...

Is that sth I do on my end? If so, please tell me more.

from vym.

GReagle avatar GReagle commented on September 23, 2024

This feature is already provided, it is called scroll.

from vym.

insilmaril avatar insilmaril commented on September 23, 2024

This feature is already provided, it is called scroll.

Not exactly: As I understood it the new feature would be to scroll everything which is not the already selected branch. This is implemented in TreeEditor with the "<"-key, but not yet in MapEditor.

from vym.

GReagle avatar GReagle commented on September 23, 2024

This feature is already provided, it is called scroll.

Not exactly: As I understood it the new feature would be to scroll everything which is not the already selected branch. This is implemented in TreeEditor with the "<"-key, but not yet in MapEditor.

Thank you for explaining your understanding of the issue. In any case, hitting the "s" key in the map editor is a great feature.

from vym.

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.