Coder Social home page Coder Social logo

Improve import documentation about shell HOT 3 CLOSED

BergenSoft avatar BergenSoft commented on September 22, 2024
Improve import documentation

from shell.

Comments (3)

moudey avatar moudey commented on September 22, 2024

Version 1.8.1

shell
{
	images import 'imports/images.nss'

	static
	{	
		import 'imports/static.nss'
		item(where=this.title.length > 25 menu=title.more_options)
	}

	dynamic
	{
		...
		import 'imports/new.nss'
		...
	}
}
//static.nss
shell
{
	item(type='recyclebin' where=window.is_desktop and this.id==id.empty_recycle_bin pos=1 sep)
	item(type='back' find=['shortcut', '/new'] vis=vis.remove)
}
//new.nss
item(title="config" image=\uE10A cmd='"@app.cfg"')
item(title="manager" image=\uE0F3 admin cmd='"@app.exe"')
item(title="directory" image=\uE0E8 cmd='"@app.dir"')

debug version

// shell.nss
import 'imports/extension.nss'
// extension.nss
// some static entries
modify(type='back' find='shortcut' in='/new' vis=vis.remove)
//import 'cleanup.nss'

 // some new entries
item(title='Windows' image=inherit cmd=sys.dir)
item(title='System' image=inherit cmd=sys.bin)
item(title='Program Files' image=inherit cmd=sys.prog)
menu(title="test")
{
   import 'new_items1.nss'
}
import 'new_items2.nss'
// new_items1.nss
item(title='item1')
item(title='item2')
// new_items2.nss
menu(title="test2")
{
    item(title='item3')
    item(title='item4')
}
item(title='item5')

from shell.

BergenSoft avatar BergenSoft commented on September 22, 2024

Ok, now I understand it a bit more.
But with the debug part you really confuse me.
I find a link to the debug build.
Has the configuration syntax completely changed?
I have a working configuration now which makes me really happy, but because of a bug with multiple monitors I've tried the debug build, but my complete configuration seems to be broken.
Could you please give me a hint what happend here?
Even the shell { at the beginning is wrong.

from shell.

moudey avatar moudey commented on September 22, 2024

There are new changes in the configuration. Where the variables section, the static section, and the dynamic section were removed, as well as the shell namespace from the header of each configuration file.

from shell.

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.