Full Code of freefelt/YouType for AI

main 2d341446a54b cached
10 files
15.4 KB
4.6k tokens
1 requests
Download .txt
Repository: freefelt/YouType
Branch: main
Commit: 2d341446a54b
Files: 10
Total size: 15.4 KB

Directory structure:
gitextract_4msh0err/

├── .gitignore
├── README-rus.md
├── README.md
├── ReleaseNotes.html
├── Scripts/
│   ├── Installer.sh
│   └── Uninstaller.sh
├── Windows/
│   ├── README-rus.md
│   └── README.md
├── appcast.xml
└── reviews.md

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
*.DS_Store

================================================
FILE: README-rus.md
================================================
# YouType для macOS
### Может отображать текущую раскладку клавиатуры в строке состояния в виде флагов в macOS 12.4+
![Screenshot1.png](Screenshot1.png)
[**Поддержать**](https://www.buymeacoffee.com/freefelt)  |  [**Обратная связь**](https://github.com/freefelt/YouType/issues/new)  |  [Обзоры / упоминания](reviews.md)  |  [Скачать](https://github.com/freefelt/YouType/raw/main/YouType.zip) |  [YouType for Windows](Windows/README-rus.md)  |  This page is also available in: [english](../..)

**YouType** это полезная программа, которая позволит тебе сохранить нервы и работать на компьютере более эффективно. При наведении курсора мыши на любое текстовое поле, YouType показывает рядом с указателем флажок текущей раскладки клавиатуры. Ты будешь видеть текущий язык как раз перед вводом текста, и в том месте экрана, куда ты смотришь в данный момент. Это очень удобно! Это позволит тебе делать меньше ошибок ввода и не терять время на исправление уже напечатанного.

Также YouType будет удобна при работе в **полноэкранном режиме**, когда индикатор текущей раскладки скрывается вместе с главной панелью. Флажок возле курсора в нужном месте подскажет какой сейчас выбран язык ввода.

# Установка / Удаление

## С помощью [Homebrew](https://github.com/Homebrew/homebrew-cask)
Для установки YouType откройте Terminal.app и выполните команду:
```bash
brew install youtype --no-quarantine
```
`--no-quarantine` - параметр помогает избежать всплывающего окна Gatekeeper при первом запуске (опционально).

Для удаления:
```bash
brew uninstall youtype --zap
```
`--zap` - параметр удаляет настройки и кэш приложения (опционально).

## С помощью [скриптов](https://github.com/freefelt/YouType/raw/main/Scripts)
Для установки YouType откройте Terminal.app и выполните команду:
```bash
/bin/bash -c "$(curl -fsSL https://github.com/freefelt/YouType/raw/main/Scripts/Installer.sh)"
```
Для удаления:
```bash
/bin/bash -c "$(curl -fsSL https://github.com/freefelt/YouType/raw/main/Scripts/Uninstaller.sh)"
```
Если нужно запустить скрипты неинтерактивно, можно добавить параметр `NONINTERACTIVE=1` перед командами:
```bash
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL http...
```


================================================
FILE: README.md
================================================
# YouType for macOS
### Can display the current keyboard layout in the status bar as flags in macOS 12.4+
![Screenshot1.png](Screenshot1.png)
[**Donate**](https://www.buymeacoffee.com/freefelt)  |  [**Feedback**](https://github.com/freefelt/YouType/issues/new)  |  [Reviews / references](reviews.md)  |  [Download](https://github.com/freefelt/YouType/raw/main/YouType.zip)  |  [YouType for Windows](Windows/README.md) |  Страница доступна на: [русском](README-rus.md)

**YouType** is a cool app that will allow you to work on your computer more efficiently and save your nerves. When you hover your mouse cursor over any text field, YouType shows you the current keyboard layout as a flag next to the pointer. You will see the current language at the location on the screen where you are working just before you enter the text. It is incredibly convenient! This will allow you to commit fewer typing errors and not waste time on a fix already printed.

Also YouType will be useful when working in **full-screen mode**, when indicator of the current keyboard layout is hidden. The indicator next to the cursor in the right place will tell you what keyboard layout is now selected.

# Installation / Uninstallation

## Using [Homebrew](https://github.com/Homebrew/homebrew-cask)
To install YouType open Terminal.app and run the command:
```bash
brew install youtype --no-quarantine
```
`--no-quarantine` param is to avoid a Gatekeeper popup on first launch (optional).

To uninstall:
```bash
brew uninstall youtype --zap
```
`--zap` param is to remove app settings and cache (optional).

## Using [scripts](https://github.com/freefelt/YouType/raw/main/Scripts)
To install YouType open Terminal.app and run the command:
```bash
/bin/bash -c "$(curl -fsSL https://github.com/freefelt/YouType/raw/main/Scripts/Installer.sh)"
```
To uninstall:
```bash
/bin/bash -c "$(curl -fsSL https://github.com/freefelt/YouType/raw/main/Scripts/Uninstaller.sh)"
```
If you want to run a script non-interactively, you can use option `NONINTERACTIVE=1` before the commands:
```bash
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL http...
```


================================================
FILE: ReleaseNotes.html
================================================
YouType 0.7.3
• YouType needs your help! We need 75 stars on GitHub to make YouType available for installation via Homebrew (https://github.com/Homebrew/homebrew-cask).
• Please, go https://github.com/freefelt/YouType and give YouType a star. Thank you!
• some minor changes

YouType 0.7.2
• fixed rendering flags with black/white stripes (thanks swayhead)
• some fixes and impovements

YouType 0.7
• added a "Open Keyboard Preferences" menu item
• added a "Show Keyboard Viewer" menu item
• added a "Show Emoji & Symbols" menu item
• added an option of enable/disable the cursor indicator
• fixed crash on M1 with launch at login
• some fixes and impovements

YouType 0.6
• the flags are coming back! (relevant for macOS 12.4, you can disable feature in settings)
• fixed crash on macOS < 10.14 (thanks MaximvsStorm)
• increased indicator quality on retina displays
• increased tinted indicator quality on non retina displays
• minor fixes

YouType 0.5
• fixed a case where the indicator did not change after changing the input source
• now you can change the current input source
• the name of the current input source can be displayed next to the indicator in the status bar

YouType 0.4.1
• minor fixes

YouType 0.4
• new method of getting the input source icon (now the Gureum input source supported)

YouType 0.3
• fixed Grey language block instead of lang flag
• better quality for statusbar flag icon

YouType 0.2
• redused energy consumption
• added feature that fixes translucent indicator appearance
• fixed the method of moving the flag behind the cursor (before it could appear and not run after the cursor)
• fixed the method of displaying the current layout (the wrong flag could be shown before)

YouType 0.1.9
• if the indicator is hidden when entering text or scrolling, it appears again when switching the input source
• some fixes to improve performance

YouType 0.1.8
• fixed support URL

YouType 0.1.7
• added checking for updates


================================================
FILE: Scripts/Installer.sh
================================================
RED='\033[1;31m'
GREEN='\033[1;32m'
CYAN='\033[1;36m'
YELLOW="\033[0;33m"
WHITE='\033[1;37m'
NOCOLOR='\033[0m'

ARCHURL="https://github.com/freefelt/YouType/raw/main/YouType.zip"
APPDESTINATION="/Applications"
ARCHFILENAME="/tmp/YouType.zip"
APPFILENAME="$APPDESTINATION/YouType.app"

#---------------------------------------------------------------------------------------------------

if test -d $APPFILENAME; then
    if [[ $NONINTERACTIVE != 1 ]]; then
        printf "${WHITE}YouType is already installed. Would you like to reinstall? ${CYAN}(y/n): "
        read REINSTALL
        if [[ $REINSTALL == "y" || $REINSTALL == "Y" ]]; then
            CONTINUE=1
            tput cuu 1; tput el;
        else
            CONTINUE=0
        fi
    else
        CONTINUE=0
        printf "${WHITE}YouType is already installed\n"
    fi
else
    CONTINUE=1
fi

if [[ $CONTINUE == 0 ]]; then
    exit
fi

printf "${CYAN}============================ Installing YouType =============================\n"

printf "${WHITE}- Downloading ${YELLOW}$ARCHURL ${RED}"
curl -fsSL -o $ARCHFILENAME $ARCHURL

if test -f $ARCHFILENAME; then
    printf "${GREEN}DONE\n"
    printf "${WHITE}- Unarchiving to ${YELLOW}$APPFILENAME "
    
    pkill -x YouType
    
    unzip -qq -o $ARCHFILENAME -d $APPDESTINATION
    if test -d $APPFILENAME; then
        printf "${GREEN}DONE\n"
        
        printf "${WHITE}- Removing ${YELLOW}com.apple.quarantine ${WHITE}attribute "
        if [[ $(xattr $APPFILENAME) = *com.apple.quarantine* ]]; then
        
            xattr -d com.apple.quarantine $APPFILENAME
            
            if [[ $(xattr $APPFILENAME) = *com.apple.quarantine* ]]; then
                printf "${RED}FAILED\n"
            else
                printf "${GREEN}DONE\n"
            fi
        else
            printf "${GREEN}NO\n"
        fi
            
        if [[ $NONINTERACTIVE != 1 ]]; then
#            printf "${NOCOLOR}Would you like to run YouType? (y/n): "
#            read RUN
#            if [[ $RUN == "y" || $RUN == "Y" ]]; then
#                open -a YouType
#            fi
            open -R $APPFILENAME
        fi
    else
        printf "${RED}FAILED\n"
    fi
    
    rm $ARCHFILENAME
fi

printf "${CYAN}=============================================================================\n"


================================================
FILE: Scripts/Uninstaller.sh
================================================
RED='\033[1;31m'
GREEN='\033[1;32m'
CYAN='\033[1;36m'
YELLOW="\033[0;33m"
WHITE='\033[1;37m'
NOCOLOR='\033[0m'

APPFILENAME="/Applications/YouType.app"
PLISTFILENAME="$(echo ~)/Library/Preferences/com.AVKorotkov.YouType.plist"
CACHEPATH="$(echo ~)/Library/Caches/com.AVKorotkov.YouType"

#---------------------------------------------------------------------------------------------------

if test -d $APPFILENAME; then
    if [[ $NONINTERACTIVE != 1 ]]; then
        printf "${WHITE}Are you sure you want to uninstall YouType? ${CYAN}(y/n): "
        read UNINSTALL
        if [[ $UNINSTALL == "y" || $UNINSTALL == "Y" ]]; then
            CONTINUE=1
            tput cuu 1; tput el;
        else
            CONTINUE=0
        fi
    else
        CONTINUE=1
    fi
else
    CONTINUE=0
    printf "${WHITE}YouType is not installed\n"
fi

if [[ $CONTINUE == 0 ]]; then
    exit
fi

printf "${CYAN}=========================== Uninstalling YouType ============================\n"

printf "${WHITE}- Removing ${YELLOW}$APPFILENAME "
if test -d $APPFILENAME; then
    pkill -x YouType
    rm -r $APPFILENAME
    if test -d $APPFILENAME; then
        printf "${RED}FAILED\n"
    else
        printf "${GREEN}DONE\n"
    fi
else
    printf "${GREEN}NO\n"
fi

printf "${WHITE}- Removing ${YELLOW}$PLISTFILENAME "
if test -f $PLISTFILENAME; then
    rm $PLISTFILENAME
    if test -f $PLISTFILENAME; then
        printf "${RED}FAILED\n"
    else
        printf "${GREEN}DONE\n"
    fi
else
    printf "${GREEN}NO\n"
fi

printf "${WHITE}- Removing ${YELLOW}$CACHEPATH "
if test -d $CACHEPATH; then
    rm -r $CACHEPATH
    if test -d $CACHEPATH; then
        printf "${RED}FAILED\n"
    else
        printf "${GREEN}DONE\n"
    fi
else
    printf "${GREEN}NO\n"
fi

printf "${CYAN}=============================================================================\n"


================================================
FILE: Windows/README-rus.md
================================================
# YouType для Windows (проект больше не поддерживается)
![77b0a01cefcd12c9354c7a5d465668e6_gallery.jpg](Screenshot1.png)
[Скачать](https://github.com/freefelt/YouType/raw/main/Windows/YouTypeSetup.zip)  |  [YouType для macOS](../README-rus.md)  |  This page is also available in: [english](README.md)

**YouType** это полезная программа, которая позволит тебе сохранить нервы и работать на компьютере более эффективно. При наведении курсора мыши на любое текстовое поле, YouType показывает рядом с указателем флажок текущей раскладки клавиатуры. Ты будешь видеть текущий язык как раз перед вводом текста, и в том месте экрана, куда ты смотришь в данный момент. Это очень удобно! Это позволит тебе делать меньше ошибок ввода и не терять время на исправление уже напечатанного.

Также YouType будет удобна при **автоматическом скрытии панели задач**, на которой расположен индикатор текущей раскладки. Флажок возле курсора в нужном месте подскажет какой сейчас выбран язык ввода.


================================================
FILE: Windows/README.md
================================================
# YouType for Windows (the project is no longer supported)
![77b0a01cefcd12c9354c7a5d465668e6_gallery.jpg](Screenshot1.png)
[Download](https://github.com/freefelt/YouType/raw/main/Windows/YouTypeSetup.zip)  |  [YouType for macOS](../../..)  |  Страница так же доступна на: [русском](README-rus.md)

**YouType** is a cool app that will allow you to work on your computer more efficiently and save your nerves. When you hover your mouse cursor over any text field, YouType shows you the current keyboard layout as a flag next to the pointer. You will see the current language at the location on the screen where you are working just before you enter the text. It is incredibly convenient! This will allow you to commit fewer typing errors and not waste time on a fix already printed.

Also YouType will be useful when you use **automatically hiding the taskbar mode**. The indicator next to the cursor in the right place will tell you what keyboard layout is now selected.


================================================
FILE: appcast.xml
================================================
<?xml version="1.0" standalone="yes"?>
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
    <channel>
        <title>YouType</title>
        <item>
            <title>0.7.3</title>
            <pubDate>Mon, 26 Dec 2022 10:16:26 +0500</pubDate>
            <link>https://github.com/freefelt/YouType</link>
            <sparkle:version>0.7.3</sparkle:version>
            <sparkle:shortVersionString>0.7.3</sparkle:shortVersionString>
            <sparkle:minimumSystemVersion>10.10</sparkle:minimumSystemVersion>
            <sparkle:releaseNotesLink>https://github.com/freefelt/YouType/raw/main/ReleaseNotes.html</sparkle:releaseNotesLink>
            <enclosure url="https://github.com/freefelt/YouType/raw/main/YouType.zip" length="6673820" type="application/octet-stream" sparkle:edSignature="EwGv8n4omK6/Vz++SwiDrABqxs7YTaRVU64ysLiFgph0WyLs9ReRRAQjYmk+uzrS424MmE8vnyJ2tqDlBhuTBQ=="/>
        </item>
    </channel>
</rss>

================================================
FILE: reviews.md
================================================
- [**trashbox.ru** - 10 неизвестных, но очень полезных приложений для mac. С ними намного удобнее](https://trashbox.ru/link/10-neizvestnyh-prilozhenij-dlya-mac)

- [**os-helper.ru** - 10 полезных приложений для Mac, о которых мало кто знает](https://os-helper.ru/macos/poleznye-prilozheniya-dlya-mac.html)

- [**iphones.ru** - Мне надоело переключать языки при печати на Mac. Нашёл 4 способа удобнее менять раскладку, в том числе автоматически](https://www.iphones.ru/iNotes/4-sposoba-uluchshit-pereklyuchenie-yazykov-vvoda-na-mac-ot-prostogo-nazhatiya-knopki-do-avtomaticheskogo-09-04-2022)

- [**thequestion.ru** - Какими интересными приложениями для Mac OS вы пользуетесь?](https://thequestion.ru/questions/73698/answer-anchor/answer/82889)

- [**iphones.ru** - Как удобнее всего переключать язык на Mac](https://www.iphones.ru/iNotes/652097)

- [**iphones.ru** - Что установить на MacBook сразу после покупки](https://www.iphones.ru/iNotes/733886)

- [**blog.skaplichniy.ru** - Флажки](http://blog.skaplichniy.ru/all/flazhki/)

- [**macworld.com** - The Week in Mac Apps: Apps for geography, file management, and more](http://www.macworld.com/article/2884944/the-week-in-mac-apps-apps-for-geography-file-management-and-more.html#slide10)

- [**minatokobe.com** - 「Iビーム」の側に入力ソースを表示「YouType」が無料](http://minatokobe.com/wp/it情報/sale/post-22616.html)

- [**macnews.tistory.com** - 오타 방지 유틸리티 'YouType'... 현재 사용 중인 입력기를 마우스 커서 옆에 표시합니다](http://macnews.tistory.com/4373)

- [**youtube.com** - Контроль за языком набора на клавиатуре Mac OS X (МакЛикбез Советы)](https://www.youtube.com/watch?v=ned5D3sQPgo)

*Уже недоступно (No longer available)*

- [**macdigger.ru** - Новое приложение для Mac отображает индикатор языковой раскладки рядом с курсором](http://www.macdigger.ru/macall/macsoft/novoe-prilozhenie-dlya-mac-otobrazhaet-indikator-yazykovoj-raskladki-ryadom-s-polem-vvoda-5-promo.html)
- [**macilove.com** - Как с помощью утилиты YouType узнать активную раскладку в OS X](http://macilove.com/news/how-to-use-youtype-see-the-active-keyboard-layout-in-os-x/)

- [**macosworld.ru** - YouType — занимательные флаги](http://macosworld.ru/youtype/)

- [**lifehacker.ru** - НщгЕнзу gjvj;tn c hfcrkflrjq rkfdbfnehs](http://lifehacker.ru/2015/04/01/nshhgenzu-gjvj-tn-c-hfcrkflrjq-rkfdbfnehs/)

- [**pavel.miroshnichen.co** - Моя подборка программ для Mac за 2014 год](http://pavel.miroshnichen.co/2015/01/17/setup-2015/)
Download .txt
gitextract_4msh0err/

├── .gitignore
├── README-rus.md
├── README.md
├── ReleaseNotes.html
├── Scripts/
│   ├── Installer.sh
│   └── Uninstaller.sh
├── Windows/
│   ├── README-rus.md
│   └── README.md
├── appcast.xml
└── reviews.md
Condensed preview — 10 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (19K chars).
[
  {
    "path": ".gitignore",
    "chars": 10,
    "preview": "*.DS_Store"
  },
  {
    "path": "README-rus.md",
    "chars": 2168,
    "preview": "# YouType для macOS\n### Может отображать текущую раскладку клавиатуры в строке состояния в виде флагов в macOS 12.4+\n![S"
  },
  {
    "path": "README.md",
    "chars": 2117,
    "preview": "# YouType for macOS\n### Can display the current keyboard layout in the status bar as flags in macOS 12.4+\n![Screenshot1."
  },
  {
    "path": "ReleaseNotes.html",
    "chars": 1953,
    "preview": "YouType 0.7.3\n• YouType needs your help! We need 75 stars on GitHub to make YouType available for installation via Homeb"
  },
  {
    "path": "Scripts/Installer.sh",
    "chars": 2317,
    "preview": "RED='\\033[1;31m'\nGREEN='\\033[1;32m'\nCYAN='\\033[1;36m'\nYELLOW=\"\\033[0;33m\"\nWHITE='\\033[1;37m'\nNOCOLOR='\\033[0m'\n\nARCHURL="
  },
  {
    "path": "Scripts/Uninstaller.sh",
    "chars": 1852,
    "preview": "RED='\\033[1;31m'\nGREEN='\\033[1;32m'\nCYAN='\\033[1;36m'\nYELLOW=\"\\033[0;33m\"\nWHITE='\\033[1;37m'\nNOCOLOR='\\033[0m'\n\nAPPFILEN"
  },
  {
    "path": "Windows/README-rus.md",
    "chars": 978,
    "preview": "# YouType для Windows (проект больше не поддерживается)\n![77b0a01cefcd12c9354c7a5d465668e6_gallery.jpg](Screenshot1.png)"
  },
  {
    "path": "Windows/README.md",
    "chars": 971,
    "preview": "# YouType for Windows (the project is no longer supported)\n![77b0a01cefcd12c9354c7a5d465668e6_gallery.jpg](Screenshot1.p"
  },
  {
    "path": "appcast.xml",
    "chars": 964,
    "preview": "<?xml version=\"1.0\" standalone=\"yes\"?>\n<rss xmlns:sparkle=\"http://www.andymatuschak.org/xml-namespaces/sparkle\" version="
  },
  {
    "path": "reviews.md",
    "chars": 2419,
    "preview": "- [**trashbox.ru** - 10 неизвестных, но очень полезных приложений для mac. С ними намного удобнее](https://trashbox.ru/l"
  }
]

About this extraction

This page contains the full source code of the freefelt/YouType GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 10 files (15.4 KB), approximately 4.6k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!