Compare commits

...

5 Commits

Author SHA1 Message Date
Acidus 659a144814 Update settingsdialog.cpp 2023-07-08 10:12:12 +02:00
Acidus efdc99fe32 update with active search engines
adding Kennedy and TLGS as search engines
2023-07-08 10:12:12 +02:00
Carlos Henrique Lima Melara 4308819b9d doc/gen-man.sh: use printf instead of echo to make it portable
printf is recommended instead of echo because it has a more predictable
behavior than echo (tip from the POSIX standard ;-). Using it allow us
to generate the _same_ manpage using sh, dash or bash.
2023-06-10 09:11:50 +02:00
Felix Queißner 56ed84a1b4
Removes ubuntu_18 runner 2023-06-05 08:31:13 +02:00
Carlos Henrique Lima Melara b6c0259854 doc: remove unused DATE logic from gen-man.sh
The use of $DATE was removed in 7a5499d7, but I forgot to remove this
logic from gen-man.sh.
2023-06-05 08:29:26 +02:00
3 changed files with 5 additions and 21 deletions

View File

@ -19,18 +19,6 @@ jobs:
- name: make
run: make
build_ubuntu_18:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: jurplel/install-qt-action@v2
with:
version: "5.9.5"
- name: make
run: make
build-macos:
runs-on: macos-latest
steps:

View File

@ -44,10 +44,6 @@ fi
# Write the head to the output file.
cp "$man_head" "$man_output"
# Insert last modified date (use last-modified date of help.gemini)
last_modified=$(date -r "$gemtext_in" +"%F")
sed -i'.bak' -e 's#\$(DATE)#'"$last_modified"'#g' "$man_output"
# Some pre-processing before giving our gemtext to the awk script.
gem_in=$(
# Read input file
@ -59,12 +55,12 @@ gem_in=$(
# First expression replaces all [Text like this] with bold text.
# Second expression replaces text like *This* or _this_ with italic text.
sed -E \
-e 's#\[([^]]*)\]#\\\\fB\1\\\\fR#g' \
-e 's#(^|[.,!? ]+)[*_]([^*_ ]+[^*_]+[^*_ ]+)[*_]($|[.,!? ])#\1\\\\fI\2\\\\fR\3#g'
-e 's#\[([^]]*)\]#\\fB\1\\fR#g' \
-e 's#(^|[.,!? ]+)[*_]([^*_ ]+[^*_]+[^*_ ]+)[*_]($|[.,!? ])#\1\\fI\2\\fR\3#g'
)
# Convert gemtext to man format
echo "$gem_in" | "$gemtext_converter" >> "$man_output"
printf "%s" "$gem_in" | "$gemtext_converter" >> "$man_output"
# Write the tail to the output file.
cat "$man_tail" >> "$man_output"

View File

@ -292,9 +292,9 @@ void SettingsDialog::setOptions(const GenericSettings &options)
this->ui->search_engine->clear();
QString search = this->current_options.search_engine;
this->ui->search_engine->lineEdit()->setPlaceholderText(tr("URL with '%1' in place of query"));
this->ui->search_engine->addItem("gemini://kennedy.gemi.dev/search?%1");
this->ui->search_engine->addItem("gemini://tlgs.one/search?%1");
this->ui->search_engine->addItem("gemini://geminispace.info/search?%1");
this->ui->search_engine->addItem("gemini://gus.guru/search?%1");
this->ui->search_engine->addItem("gemini://houston.coder.town/search?%1");
this->ui->search_engine->addItem("gopher://gopher.floodgap.com:70/7/v2/vs?%1");
this->ui->search_engine->setCurrentText(search);