Browse Source

Added ${ItemNameNoExt} - see forum-9830.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5279 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Daniel Grunwald 16 years ago
parent
commit
a30ba7fec7
  1. 7
      src/Main/Base/Project/Src/Commands/CustomStringTagProvider.cs

7
src/Main/Base/Project/Src/Commands/CustomStringTagProvider.cs

@ -22,7 +22,7 @@ namespace ICSharpCode.SharpDevelop.Commands @@ -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 @@ -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":
{

Loading…
Cancel
Save