Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
rompelhd authored Apr 30, 2024
1 parent 7aa06f0 commit df78523
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions include/etree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <fstream>
#include <cstdlib>
#include <iostream>
#include "../include/basic.hpp"
#include "json.hpp"
#include <filesystem>

Expand All @@ -21,32 +22,6 @@ std::string currentDirectory = fs::current_path().string();
vector<string> inner_pointers = { "├── ", "" };
vector<string> final_pointers = { "└── ", " " };

namespace Colours {
const std::string greenColour = "\033[1;32m";
const std::string endColour = "\033[0m";
const std::string redColour = "\033[1;31m";
const std::string blueColour = "\033[1;34m";
const std::string yellowColour = "\033[1;33m";
const std::string purpleColour = "\033[1;35m";
const std::string turquoiseColour = "\033[1;36m";
const std::string grayColour = "\033[1;37m";
}

namespace Paths {
inline std::string getConfigFolderPath() {
std::string homeDir = getenv("HOME");
return homeDir + "/.config/";
}

inline std::string getEtreeFolderPath() {
return getConfigFolderPath() + "etree/";
}

inline std::string getLanguageFilePath(const std::string& languageCode) {
return getEtreeFolderPath() + "locales/" + languageCode + ".json";
}
}

//RelativePath
inline std::string relativePath(const fs::path& entryPath) {
return fs::relative(entryPath, fs::current_path()).string();
Expand Down Expand Up @@ -118,4 +93,4 @@ const std::vector<std::tuple<std::string, std::string, std::string>> iconsWithEx
{"󰨊 ", ".ps1", ""}
};

#endif
#endif

0 comments on commit df78523

Please sign in to comment.