Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/khaphanspace/gonhanh.org/llms.txt

Use this file to discover all available pages before exploring further.

Installation Issues

App Won’t Open on macOS

If you see “GoNhanh.app is damaged and can’t be opened” after downloading manually, this is a security feature, not actual damage.
Solution:
1

Remove quarantine attribute

Open Terminal and run:
xattr -cr /Applications/GoNhanh.app
2

Launch the app

Double-click GoNhanh.app in Applications folder
3

Grant Accessibility permission

Go to System Settings → Privacy & Security → AccessibilityEnable GoNhanh in the list
Why does this happen?macOS quarantines apps downloaded from the internet. The xattr command removes this quarantine flag safely.

Accessibility Permission Issues

The app requires Accessibility permission to intercept keyboard events system-wide.Check permission status:
  1. Open System Settings
  2. Go to Privacy & Security → Accessibility
  3. Verify GoNhanh is in the list and enabled
Reset permission if not working:
tccutil reset Accessibility org.gonhanh
Then restart GoNhanh and grant permission again when prompted.
After granting permission, you must restart the app:
  1. Right-click menu bar icon → Quit
  2. Reopen from Applications folder
  3. Test typing in any app
macOS updates sometimes reset Accessibility permissions.Solution:
  1. Go to System Settings → Privacy & Security → Accessibility
  2. Toggle GoNhanh off then on
  3. Restart the app

Typing Issues

Character Swallowing in IDEs

Claude Code, VS Code, Cursor, Windsurf, and JetBrains IDEs may “swallow” the first character when the AI assistant autocomplete is active.
Example: Type được → only see ược (missing đ) Solution:
1

Open Settings

Click menu bar icon → SettingsAdvanced tab
2

Add per-app config

Under “Per-app customization”, click +Select your IDE from the list
3

Increase delay

Drag the Delay slider to “Very High” (purple)This adds extra delay between backspaces and character insertion
4

Test

Settings auto-save. Return to your IDE and test typing
Why this works:IDEs with AI autocomplete have slower response times. The delay ensures the backspace is processed before inserting the new character.Each machine and IDE combination may need different delay levels. Experiment to find what works best.

Dính Chữ (Stuck Characters) in Address Bar

Problem: Typing Vietnamese in Chrome/Safari/Arc address bar causes stuck characters Example: Type dantri → see dân trí but URL doesn’t update correctly
Gõ Nhanh automatically detects address bars (AXComboBox elements) and uses selection-based replacement instead of backspace.This should work automatically. If you still see issues:
  1. Check you’re running the latest version
  2. Report the specific browser and version on GitHub

Input Source Not Switching

When using non-Latin input sources (Japanese, Chinese, Korean, etc.), Gõ Nhanh automatically disables itself.
Supported behavior:
  • Switch to Japanese → Menu bar shows あ, Gõ Nhanh disabled
  • Switch back to English → Menu bar shows V, Gõ Nhanh re-enabled
  • Switch to Vietnamese IME → Menu bar shows E, Gõ Nhanh disabled
Blocked languages:
// East Asian
ja, zh, zh-Hans, zh-Hant, ko

// Southeast Asian (non-Latin)
th, km, lo, my

// South Asian  
hi, bn, ta, and others

// Middle Eastern
ar, he, fa, ur

// Cyrillic
ru, uk, be, bg
Why?These input methods use different character systems incompatible with Vietnamese. Gõ Nhanh only works with Latin-based keyboards.

Auto-restore Not Working for English Words

Problem: Typing text → get têt instead of auto-restoring to text
Auto-restore only triggers when you press Space after the word.Typing text alone won’t restore. Type text (with space) to trigger.
Words that form valid Vietnamese syllables cannot be auto-detected:
EnglishBecomesWhy
mixM + ĩ is valid Vietnamese
boxB + õ is valid Vietnamese
sixS + ĩ is valid Vietnamese
Workaround: Press ESC after typing to restore, or temporarily disable Gõ Nhanh with Ctrl+Space.

Performance Issues

High CPU Usage

Debug mode significantly impacts performance.Check if enabled:
ls -la /tmp/gonhanh_debug.log
Disable debug mode:
rm /tmp/gonhanh_debug.log
Then restart GoNhanh.
Expected performance:
  • Idle: 0% CPU, ~5MB RAM
  • Typing: Brief spikes to 1-3% CPU
  • Latency: < 1ms per keystroke
If you see sustained high CPU usage, please report on GitHub with:
  • macOS version
  • GoNhanh version
  • List of running apps

Typing Lag or Delay

If you notice delay between pressing keys and seeing output, this is usually not GoNhanh.
Check these first:
  1. Disable other input methods
    • Go to System Settings → Keyboard → Input Sources
    • Remove any other Vietnamese IMEs
    • Keep only: English + GoNhanh
  2. Check Accessibility conflicts
    • Other apps with Accessibility permission can interfere
    • Try temporarily disabling other accessibility tools
  3. Test in different apps
    • If lag only in specific app (e.g., Electron apps), increase per-app delay
    • If lag everywhere, check Activity Monitor for other processes

Settings Issues

Settings Not Saving

Check preferences file exists:
ls -la ~/Library/Preferences/org.gonhanh.*
If file is corrupted, reset:
defaults delete org.gonhanh
Then restart GoNhanh. All settings will reset to defaults.

Shortcuts Not Working

Check shortcut is saved:
  1. Open Settings → Shortcuts
  2. Verify your abbreviation is in the list
  3. Format: fromto (e.g., vnViệt Nam)
Trigger requirements:
  • Type the abbreviation exactly
  • Press Space or punctuation
  • The replacement happens immediately
This is the global hotkey to enable/disable Gõ Nhanh.If not working:
  1. Check another app isn’t capturing Ctrl+Space
  2. Try clicking menu bar icon to toggle manually
  3. Check keyboard is properly connected (Bluetooth keyboards sometimes drop modifiers)

App-Specific Issues

Electron Apps (Slack, Discord, Notion)

Problem: Occasional character loss or duplication Solution:
  • Update to latest version of the Electron app
  • Try increasing per-app delay in GoNhanh Settings → Advanced
  • Report persistent issues on GitHub

JetBrains IDEs (IntelliJ, WebStorm, PyCharm)

Problem: Autocomplete popup interferes with typing Solution: GoNhanh automatically detects JetBrains apps (bundle ID: com.jetbrains.*) and uses selection-based replacement. If still having issues, increase delay in per-app settings.

Microsoft Excel

Problem: Cell autocomplete causes character issues Solution: GoNhanh automatically detects Excel and adjusts behavior. Update to latest version if problems persist.

Terminal (Terminal.app, iTerm2)

Best practice: Disable Gõ Nhanh when working in Terminal.Press Ctrl+Space to toggle off before typing commands.
Why: Shell commands are English-only. Vietnamese input interferes with:
  • Command names
  • File paths
  • Keyboard shortcuts (Ctrl+C, Ctrl+D, etc.)
Alternative: Add Terminal to exclusion list:
  1. Settings → Advanced → Per-app customization
  2. Add Terminal.app
  3. Set to “Always disable”

Update Issues

Auto-update Check Fails

Gõ Nhanh checks for updates every 24 hours. If update check fails:
  1. Check internet connection
  2. Manually check: Menu bar → Settings → Updates
  3. Or install manually from GitHub releases

Update Downloaded but Won’t Install

For Homebrew installations:
brew upgrade --cask gonhanh
For manual installations:
  1. Download latest GoNhanh.dmg from GitHub
  2. Quit current GoNhanh (menu bar → Quit)
  3. Open DMG and drag to Applications (replace existing)
  4. Run xattr -cr /Applications/GoNhanh.app
  5. Relaunch

Debug Mode

Enable debug logging to diagnose issues.
Enable:
touch /tmp/gonhanh_debug.log
View logs:
tail -f /tmp/gonhanh_debug.log
Log format:
[HH:MM:SS.mmm] K:42 → Action:Send, BS:1, Out:[á]
[HH:MM:SS.mmm] M: setMethod(Telex)
[HH:MM:SS.mmm] P: RAM=5.2MB keys=1234
Disable:
rm /tmp/gonhanh_debug.log
Debug mode impacts performance. Only enable when troubleshooting.

Getting Help

If these solutions don’t help:
  1. Check GitHub Issues: github.com/khaphanspace/gonhanh.org/issues
  2. Report a bug: Include macOS version, GoNhanh version, and steps to reproduce
  3. Community support: Join discussions on GitHub
Include in bug reports:
  • macOS version (sw_vers)
  • GoNhanh version (menu bar → About)
  • App where issue occurs (bundle ID helpful)
  • Debug log excerpt if available

Build docs developers (and LLMs) love