# Use it to write any regular expression to extract document info from title.
# One line can contain five tab delimited values:
# 1. process name on which to run the regex
# 2. regex for the group. 
# 3. regex for the activity. OPTIONAL If this one is missing the same value will be used for activity and group.
# 4. regex for the group substitution rule. OPTIONAL
# 5. regex for the activity substitution rule. OPTIONAL
#
#
# In ManicTime groups are what you see in the bottom right on the day view, activites on the bottom left. 
# Lets take an URL for example. Group can be site name, so www.manictime.com, activity could be www.manictime.com/download
# Most of the plugins in here use the same value for group and activity, so they only have one regex
#
# 
# For example 
# notepad	[TAB] groupRegex [TAB] activityRegex [TAB] groupSubstitutionRegex [TAB] activitySubstitutionRegex
#
# Lets take notepad as an example. Notepad title usually consists of a document name then hyphen and then Notepad
# Document1 - Notepad
#
# The following line will try to extract document info for notepad, group and activity will be the same
# notepad	(.*?)-[^-]*$
#
# Regex (.*?)-[^-]*$ will get all text before the last hyphen character, so in above example Document1
#
# If you include more than one capture group, first non empty one will be used
#
#
#
# WARNING
# Whatever you change inside Program files will be overwritten next time you upgrade MT. To keep the changes you make:
# 1. In ManicTime click on Tools - Advanced - Open db folder.
# 2. In subfolder Plugins, you will find file CustomTitle.txt. You can change this file, it will not be touched when you upgrade MT.
#
#

anydesk	(.*?)-[^-]*$
notepad	(.*?)-[^-]*$
PaintStudio.View	(.*?)-[^1]*$
AcroRd32	(.*?)-[^-]*$
acrobat	(.*?) - Adobe Acrobat.*$
Foxit Reader	(.*?) - Foxit Reader$|.*?\[([^\[]*)\]$
#powerpnt	(.*?) - Microsoft PowerPoint$|Microsoft PowerPoint - (.*?)$
#winword	(.*?) - Microsoft Word$|Microsoft Word - (.*?)$
#excel	(.*?) - (Microsoft )?Excel$|Microsoft Excel - (.*?)$|Microsoft Visual Basic for Applications - (.*?)$
#outlook	(?:(?:RE|FW)(?:\s*:\s*))*(.*?) - Message.*$
#onenote	(.*?) - OneNote$

#VLC detects media playing as documents
vlc	(.*?) - [^-]*$
notepad++	\*?(.*?) - [^-]*$
#Detects chats as documents
steam	(.*?) - [^-]*$
#Anything but Audcaity
audacity	([^Audacity].*?)$
#Pidgin...This is gonna be a long one, detects chats as documents
pidgin	([^Buddy List|^Accounts|^Buddy Pounces|^Certificate Manager|^Plugins|^Custom Smiley Manager|^Preferences|^Privacy|^Pidgin|^File Transfers|^Room List|^System Log|^Modify Account|^Set User Info|^MOTD for .*?|^Join a Chat|^Buddy Information|^Conversations with .*?|^Add Buddy|^Add Chat|^Add Group|^Buddy Comment for .*?|^Buddy Icon|^Pidgin Build Information|^Debug Window|^Pidgin Developer Information|^Pidgin Translator Information|^About Pidgin|^Open File...|^Invite Buddy Into Chat Room].*?)$
#ms communicator (Lync)
communicator	^(?!Microsoft Lync|Office Communicator)(.*?)$
#Based off CS5
afterfx	Adobe After Effects - (.*?)$
dreamweaver	.*\[(.*?)\]$
contribute	.*\[(.*?)\*?\]$
adobe encore	(.*?) - Adobe Encore.*$
extendscript toolkit	\*?(.*\.js.*?)$
fireworks	(.*?) : .*? @ .*$
flashbuilder	Flash - (.*?) - Flash Builder$
adobe flash catalyst	Adobe Flash Catalyst - (.*?) @.*?$
#Yeah you have to save it with one of these extensions...
flash	(.*[\.as|\.fla|\.xfl|\.asc|\.jsfl|\.txt|\.xml|\.cel|\.swf|\.flv])\*?$
illustrator	(.*?)\*? @ .*$
indesign	\*?(.*?) @ .*$
adobe premiere pro	Adobe Premiere Pro - (.*?)\*?$
adobe soundbooth cs5	Adobe Soundbooth CS5 - (.*?)\*?$

#PowerDirector 8
pdr8	(.*\.pds)$

#AutoCAD
acad	.*?\[([^\]]*)\]$

#AutoCAD LT
acadlt	.*?\[([^\]]*)\]$

#Revit  enable setting Track full document path to also display full document path otherwise just document name
revit	.*?\[(.*\.[a-zA-Z]*) *.*$

#Autodesk 3ds Max...9's title is different from 2010's
3dsmax	(.*\.[a-zA-Z]*) *.*$

#VMWare Workstation
vmware	(.*) - .*$
#VMWarePlayer
vmplayer	(.*) - .*$

#Calibre When you are reading a book
calibre-parallel	E-book Viewer - (.*)$

#eclipse
eclipse	.* - ([^\/|\\]+).*\..+ - (?:Eclipse IDE|Eclipse)$	.* - (.*\..+) - (?:Eclipse IDE|Eclipse)$
#Netbeans, unfortunately only gives the project name...though i guess if you use alot of main.java's it's better
netbeans	(.*) - .*$
#Android Studio
studio64	^.*?\[.*\\(.+)\] - \.{3}.+ \[.+\] - Android Studio$	^.*?\[(.+?)\] - \.{3}(.+) \[.+\] - Android Studio$		$1$2
studio64	^.*?\[.*\\(.+)\] - .+ - Android Studio$	^.*?\[.+\] - (.+) - Android Studio$

# total commander Lister
totalcmd	.*?\[([^\]]*)\]$
totalcmd64	.*?\[([^\]]*)\]$

gvim	(.*?)[ +]*\([^(]*$
yap	.*\[([^\[]*)\]$
msaccess	.*? \- ([^:]*).*$
foobar2000	(.*)\[[^\]]*\]$
dcadwin	.*?\[([^\]]*)\]$
sublime_text	([^\u2022]*?)\u2022?(?: \([^(]*\))? - Sublime Text.*?

# Libre Office
soffice.bin	.* - (.*)$	(.*) - .*$

wps	.*?\[([^\]]*)\]$
photoshop	([^@]*)@.*$
flare	(.*?) - MadCap Flare V\d*$

Ssms	.*? - ([^-(]*)(?:\(.*?\))? - Microsoft SQL Server Management Studio	(.*?) - Microsoft SQL Server Management Studio

LyX	LyX: (.*)$
SumatraPDF	(.*?) - \[[^\]]*\] - SumatraPDF$

#Trimble SketchUp
SketchUp	(.*?) - SketchUp (Make|Pro).*$
Viewer	(.*?) - SketchUp Viewer$	

Maruo	(.*?) - [^-]*$
Revu	(.*?) - Bluebeam Revu x64$
Revu32	(.*?) - Bluebeam Revu$

blender-app	Blender\*? \[.*?\\([^\\(\]]*)[^\\]*?\]$	Blender\*? \[([^(\]]*).*?\]$

scrivener	(.*?) - [^-]*$

NitroPDFReader	(.*?) - [^-]*$

qpw17	[^-]*? - \[([^(]*?)(?:\(.*?\))?\]*$
wpwin17	[^-]*? - \[([^(]*?)(?:\(.*?\))?\]*$

Vectorworks2016	.*?\[([^\]]*)\]$
mspaint	(.*?) - Paint$
Final Draft	Final Draft - (.*)$

PhotoLine64	[^[]*\[(.*?)\*? \(.*\]$
3D-CoatGL64C	^(.*\.3b)\*? - .*$

Nuke10.5	(.*?)(\[[^\]]*\] )?-[^-]*$
atom	[^—]* — ([^—]*) — Atom$	([^—]*) — [^—]* — Atom$
tableau	Tableau - (.*)$
Code	[^—]* — ([^—]*) — Visual Studio Code$	([^—]*) — [^—]* — Visual Studio Code$
Rhino	(.*?) (?:\(\d* KB\) )?- Rhinoceros [0-9.]* .*?$

CamtasiaStudio	Camtasia Studio - (.*)$

xtop	^.*?([^-]*)$	^([^\s]*)

#explorer	(.*)

phpstorm64	^([^\u2013]*)\u2013[^\u2013]*$	^[^\u2013]*\u2013([^\u2013]*)$

#DaVinci 
Resolve	^DaVinci Resolve Studio \- (.*)$
Resolve	^DaVinci Resolve \- (.*)$
Fusion	^Fusion Studio \- \[?(.*?)\]?$

pdfstudioviewer2024	^(.*?)\s*- PDF Studio Viewer
MasterPDFEditor	^(.*?)(?=-Master PDF Editor)

measuresquare	((?:[A-Z]:|\\\\[^\s\\]+)(?:\\[^\\\n]+)+\.fez)
