| 
									
										
										
										
											2013-04-09 19:41:07 -04:00
										 |  |  | ! Copyright (C) 2013 Doug Coleman. | 
					
						
							|  |  |  | ! See http://factorcode.org/license.txt for BSD license. | 
					
						
							| 
									
										
										
										
											2015-06-01 17:39:30 -04:00
										 |  |  | USING: combinators.short-circuit editors fry io.standard-paths | 
					
						
							|  |  |  | kernel make math.parser namespaces system vocabs ;
 | 
					
						
							| 
									
										
										
										
											2013-04-09 19:41:07 -04:00
										 |  |  | IN: editors.geany | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | SINGLETON: geany | 
					
						
							|  |  |  | geany editor-class set-global
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-01 17:39:30 -04:00
										 |  |  | SYMBOL: geany-path | 
					
						
							| 
									
										
										
										
											2013-04-09 19:41:07 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-01 17:39:30 -04:00
										 |  |  | HOOK: find-geany-path os ( -- path )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: unix find-geany-path "geany" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: windows find-geany-path | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         [ { "Geany" } "geany.exe" find-in-applications ] | 
					
						
							|  |  |  |         [ "Geany.exe" ] | 
					
						
							|  |  |  |     } 0|| ;
 | 
					
						
							| 
									
										
										
										
											2013-04-09 19:41:07 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | M: geany editor-command | 
					
						
							|  |  |  |     '[ | 
					
						
							| 
									
										
										
										
											2015-06-01 17:39:30 -04:00
										 |  |  |         geany-path get [ find-geany-path ] unless* , | 
					
						
							| 
									
										
										
										
											2013-04-09 19:41:07 -04:00
										 |  |  |         _ , | 
					
						
							|  |  |  |         "--line" , _ number>string , | 
					
						
							| 
									
										
										
										
											2013-04-09 19:50:19 -04:00
										 |  |  |     ] { } make ;
 |