| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -99,11 +99,6 @@ export default new class api | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							let i = set_link_selection_index Math.max(-1, state.link_selection_index - 1) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							#link_input.focus! if i == -1 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						def navigate link | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							await increment_link_frequency link | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							#home_input.value = "" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							new_tab link.url | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						get math_result | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							try | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								mexp.eval(state.query) | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -126,6 +121,10 @@ export default new class api | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							else | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								navigate link | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						def handle_input | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							set_link_selection_index 0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							sort_links! | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						get bang | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							state.active_bang or config.data.default_bang | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -135,10 +134,18 @@ export default new class api | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						get encoded_bang_query_nourl | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							"{window.encodeURIComponent(state.query)}" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						def new_tab(url) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							window.open url,'_blank' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						def navigate link, link_url | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							await increment_link_frequency link | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							state.query = "" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							handle_input! | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							new_tab link_url || link.url | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						def handle_bang | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							return if state.loading | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							await increment_link_frequency bang | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							new_tab encoded_bang_query | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							navigate bang, encoded_bang_query | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						def unset_active_bang | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							state.active_bang = no | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -150,6 +157,3 @@ export default new class api | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						def help | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							new_tab "https://github.com/familyfriendlymikey/fuzzyhome" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						def new_tab(url) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							window.open url,'_blank' | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |