add tip about metadata driven views (and more flexible view filtering)
While writing this documentation, I realized that there needed to be a way to stay in a view like tag=* while adding a filter like tag=work that applies to the same field. So, there are really two ways a view can be refined. It can have a new "field=explicitvalue" filter added to it, which does not change the "shape" of the view, but narrows the files it shows. Or, it can have a new view added, which adds another level of subdirectories. So, added a vfilter command, which takes explicit values to add to the filter, and rejects changes that would change the shape of the view. And, made vadd only accept changes that change the shape of the view. And, changed the View data type slightly; now components that can match multiple metadata values can be visible, or not visible. This commit was sponsored by Stelian Iancu.
This commit is contained in:
		
					parent
					
						
							
								d8ce6cac36
							
						
					
				
			
			
				commit
				
					
						dd7b99c860
					
				
			
		
					 9 changed files with 201 additions and 53 deletions
				
			
		| 
						 | 
				
			
			@ -29,6 +29,7 @@ import qualified Command.ReKey
 | 
			
		|||
import qualified Command.MetaData
 | 
			
		||||
import qualified Command.View
 | 
			
		||||
import qualified Command.VAdd
 | 
			
		||||
import qualified Command.VFilter
 | 
			
		||||
import qualified Command.VPop
 | 
			
		||||
import qualified Command.VCycle
 | 
			
		||||
import qualified Command.Reinject
 | 
			
		||||
| 
						 | 
				
			
			@ -142,6 +143,7 @@ cmds = concat
 | 
			
		|||
	, Command.MetaData.def
 | 
			
		||||
	, Command.View.def
 | 
			
		||||
	, Command.VAdd.def
 | 
			
		||||
	, Command.VFilter.def
 | 
			
		||||
	, Command.VPop.def
 | 
			
		||||
	, Command.VCycle.def
 | 
			
		||||
	, Command.Fix.def
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue