This is the README for the "Hasanah" extension. Hasanah is a VS Code extension that displays random Hadith and Ayah from the Quran in your editor. It alternates between displaying a Hadith and an Ayah at a specified interval.
You can contribute to the repository oovaa/hasanah to help improve this extension.
Hasanah includes the following features:
- Displays a random Hadith or Ayah at a specified interval.
- Alternates between displaying a Hadith and an Ayah.
- Includes the source of the Hadith or the Surah and Ayah number for the Quran verse.
There are no specific requirements or dependencies for this extension.
This extension contributes the following commands:
hasanah.getAyah
: Fetches and displays a random Ayah from the Quran.hasanah.getHijriDate
: Fetches and displays the current Hijri date.
You can run these commands from the command palette (Ctrl+Shift+P
or Cmd+Shift+P
on Mac) by typing the command name.
This extension contributes the following settings:
-
hasanah.delay
: Set the delay (in minutes) between each display of Hadith or Ayah. The delay can be any positive integer. The default value is 30 minutes. -
hasanah.language
: Set the language for the displayed Ayah or Hadith. The language can be either 'en' for English or 'ar' for Arabic. The default value is 'ar'.How to configure:
- Open the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
on Mac). - Type
Preferences: Open Settings (UI)
and pressEnter
. - In the search bar at the top, type
hasanah delay
. - Set the desired delay value in the settings.
Alternatively, you can add the following line to your
settings.json
file:"hasanah.delay": 30
How to configure:
- Open the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
on Mac). - Type
Preferences: Open Settings (UI)
and pressEnter
. - In the search bar at the top, type
hasanah language
. - Select the desired language from the dropdown menu in the settings.
Alternatively, you can add the following line to your
settings.json
file:"hasanah.language": "ar"
- Open the Command Palette (
- When the Hadith text is too long, it may not display properly.
See CHANGELOG.md for a detailed history of changes.
- Quraan API: This API is used to fetch the Ayahs displayed by the extension.
- Old Quraan API: This is the old API used to fetch the Ayahs displayed by the extension.
- Hadith API: This API is used to fetch the Hadiths displayed by the extension.
- Visual Studio Code's Markdown Support: Learn more about writing Markdown in Visual Studio Code.
- Markdown Syntax Reference: A reference guide for Markdown syntax.
Enjoy!
A huge thank you to everyone who uses and supports this extension. Your feedback and contributions make it better every day. May your coding journey be filled with inspiration and productivity. and a special thank for you. ๐ฉท
ุตุฏูุฉ ุฌุงุฑูุฉ ุนู ุฌู ูุน ุงูู ุณูู ููุ ูุณุฃููู ุงูุฏุนุงุก ูููุน ุงููู ุจูุง ูุจูู . ๐