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
public class SharpDevelopStringTagProvider : IStringTagProvider public class SharpDevelopStringTagProvider : IStringTagProvider
{ {
readonly static string[] tags = new string[] { readonly static string[] tags = new string[] {
"ItemPath", "ItemDir", "ItemFilename", "ItemExt", "ItemPath", "ItemDir", "ItemFilename", "ItemExt", "ItemNameNoExt",
"CurLine", "CurCol", "CurText", "CurLine", "CurCol", "CurText",
"TargetPath", "TargetDir", "TargetName", "TargetExt", "TargetPath", "TargetDir", "TargetName", "TargetExt",
"CurrentProjectName", "CurrentProjectName",
@ -93,6 +93,11 @@ namespace ICSharpCode.SharpDevelop.Commands
return Path.GetExtension(GetCurrentItemPath()) ?? string.Empty; return Path.GetExtension(GetCurrentItemPath()) ?? string.Empty;
} catch (Exception) {} } catch (Exception) {}
break; break;
case "ITEMNAMENOEXT":
try {
return Path.GetFileNameWithoutExtension(GetCurrentItemPath()) ?? string.Empty;
} catch (Exception) {}
break;
case "CURLINE": case "CURLINE":
{ {

Loading…
Cancel
Save