Compare commits
5 Commits
9c60513b8d
...
659a144814
Author | SHA1 | Date |
---|---|---|
Acidus | 659a144814 | |
Acidus | efdc99fe32 | |
Carlos Henrique Lima Melara | 4308819b9d | |
Felix Queißner | 56ed84a1b4 | |
Carlos Henrique Lima Melara | b6c0259854 |
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue