Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

326 B
Raw Blame
/** Executable identity for form matching; keep the original command for launching. */
export function commandName(command: string): string {
  const name = command.replace(/\\/g, "/").split("/").pop() ?? command;
  return /\.(exe|cmd|bat|com)$/i.test(name) ? name.replace(/\.(exe|cmd|bat|com)$/i, "").toLowerCase() : name;
}