From a30ba7fec76148633a2ec9dc478e8aebb6416049 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Thu, 26 Nov 2009 14:44:46 +0000 Subject: [PATCH] Added ${ItemNameNoExt} - see forum-9830. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5279 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Base/Project/Src/Commands/CustomStringTagProvider.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Main/Base/Project/Src/Commands/CustomStringTagProvider.cs b/src/Main/Base/Project/Src/Commands/CustomStringTagProvider.cs index 470cb68cfd..8968db0295 100644 --- a/src/Main/Base/Project/Src/Commands/CustomStringTagProvider.cs +++ b/src/Main/Base/Project/Src/Commands/CustomStringTagProvider.cs @@ -22,7 +22,7 @@ namespace ICSharpCode.SharpDevelop.Commands public class SharpDevelopStringTagProvider : IStringTagProvider { readonly static string[] tags = new string[] { - "ItemPath", "ItemDir", "ItemFilename", "ItemExt", + "ItemPath", "ItemDir", "ItemFilename", "ItemExt", "ItemNameNoExt", "CurLine", "CurCol", "CurText", "TargetPath", "TargetDir", "TargetName", "TargetExt", "CurrentProjectName", @@ -93,6 +93,11 @@ namespace ICSharpCode.SharpDevelop.Commands return Path.GetExtension(GetCurrentItemPath()) ?? string.Empty; } catch (Exception) {} break; + case "ITEMNAMENOEXT": + try { + return Path.GetFileNameWithoutExtension(GetCurrentItemPath()) ?? string.Empty; + } catch (Exception) {} + break; case "CURLINE": {