Skip to content

Commit

Permalink
[REFACTOR] CHANGELOG v2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nots1dd committed Aug 31, 2024
1 parent d44e767 commit 4e6b788
Show file tree
Hide file tree
Showing 11 changed files with 720 additions and 185 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG/v2_7_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# CHANGE TYPE: MEDIUM

## Summary of Changes

-> A continuation to v2.7 in terms of refactoring

-> Fixed synhash issue of string error (strings hashtable occurance would toggle the boolean, leading to acceptable strings like "'#hello'" to give weird output)

-> Fixed some mime file type defs

-> Added more keywords.yaml files

-> Fixed the file info popup not showing up for readable files
3 changes: 2 additions & 1 deletion include/filepreview.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
#define MIME_TEXT_C "text/x-c"
#define MIME_TEXT_CPP "text/x-c++"
#define MIME_TEXT_PYTHON "text/x-script.python"
#define MIME_TEXT_JAVA "text/x-java-source"
#define MIME_TEXT_JAVA "text/x-java"
#define MIME_TEXT_JAVASCRIPT "application/javascript"
#define MIME_APPLICATION_OCTET_STREAM "application/octet-stream"
#define MIME_TEXT_MAKEFILE "text/x-makefile"
#define MIME_TEXT_HTML "text/html"
Expand Down
14 changes: 9 additions & 5 deletions include/kbinput.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* License: <GNU GPL v3>
*
* Notes: Some function calls that require a global scope need
* Notes: Some function calls that require a global scope need
* proper implementation
*
* Revision History:
Expand All @@ -34,15 +34,19 @@
#include <stdio.h>

#define MAX_HISTORY 256
#define UNICODE_SEARCH "🔍"
#define UNICODE_SEARCH "🔍"

void handleInputScrollUp(int* highlight, int* scroll_position);
void handleInputScrollDown(int* highlight, int* scroll_position, int* item_count, int* height);
void handleInputToggleHidden(int* show_hidden, int* scroll_position, int* highlight);
void handleInputMovCursBtm(int* highlight, int* item_count, int* scroll_position, int* max_y);
int find_item(const char *query, FileItem items[], int *item_count, int *start_index, int direction);
void handleInputStringSearch(WINDOW* win, FileItem items[], int* item_count, int* highlight, int* scroll_position, int *height, char* last_query, const char* current_path);
void handleInputStringOccurance(int direction, const char* last_query, FileItem items[], int* item_count, int* highlight, int* scroll_position, int *height);
int find_item(const char* query, FileItem items[], int* item_count, int* start_index,
int direction);
void handleInputStringSearch(WINDOW* win, FileItem items[], int* item_count, int* highlight,
int* scroll_position, int* height, char* last_query,
const char* current_path);
void handleInputStringOccurance(int direction, const char* last_query, FileItem items[],
int* item_count, int* highlight, int* scroll_position, int* height);
/* ------------------------------
* void handleInputScopeBack(int* history_count, int* highlight, int* scroll_position, const char*
* current_path, DirHistory history[]); void handleInputScopeForward(WINDOW *win, WINDOW *info_win,
Expand Down
162 changes: 162 additions & 0 deletions keywords/css-keywords.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
keywords:
- color
- background
- background-color
- background-image
- background-repeat
- background-position
- background-size
- font
- font-family
- font-size
- font-weight
- font-style
- font-variant
- line-height
- text-align
- text-decoration
- text-transform
- letter-spacing
- word-spacing
- white-space
- list-style
- list-style-type
- list-style-position
- list-style-image
- margin
- margin-top
- margin-right
- margin-bottom
- margin-left
- padding
- padding-top
- padding-right
- padding-bottom
- padding-left
- border
- border-width
- border-style
- border-color
- border-radius
- outline
- outline-width
- outline-style
- outline-color
- width
- height
- max-width
- max-height
- min-width
- min-height
- position
- top
- right
- bottom
- left
- z-index
- display
- float
- clear
- overflow
- overflow-x
- overflow-y
- visibility
- content
- cursor
- opacity
- transition
- transform
- animation
- keyframes
- box-shadow
- text-shadow
- border-collapse
- border-spacing
- caption-side
- empty-cells
- table-layout
- direction
- unicode-bidi
- vertical-align
- background-clip
- background-origin
- background-attachment
- grid
- grid-template
- grid-template-rows
- grid-template-columns
- grid-template-areas
- grid-row
- grid-column
- grid-area
- grid-auto-rows
- grid-auto-columns
- grid-auto-flow
- grid-gap
- grid-row-gap
- grid-column-gap
- align-content
- align-items
- align-self
- justify-content
- justify-items
- justify-self
- flex
- flex-basis
- flex-direction
- flex-flow
- flex-grow
- flex-shrink
- flex-wrap
- align-content
- justify-content
- order

functions:
- 'rgb'
- 'rgba'
- 'hsl'
- 'hsla'
- 'calc'
- 'attr'
- 'url'
- 'min'
- 'max'
- 'clamp'
- 'linear-gradient'
- 'radial-gradient'
- 'repeating-linear-gradient'
- 'repeating-radial-gradient'

operators:
- '+'
- '-'
- '*'
- '/'
- '%'
- '='
- '>'
- '<'
- '!'

symbols:
- '{'
- '}'
- ':'
- ';'
- '('
- ')'
- '['
- ']'
- ','

multicomments1:
- '/'

multicomments2:
- '*'

strings:
- "\""
- "'"
- "`"
160 changes: 160 additions & 0 deletions keywords/html-keywords.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
keywords:
- html
- '<head>'
- '<title>'
- base
- '<link>'
- '<meta>'
- '<style>'
- '<script>'
- noscript
- body
- section
- nav
- article
- aside
- h1
- h2
- h3
- h4
- h5
- h6
- header
- footer
- address
- main
- p
- hr
- pre
- blockquote
- ol
- ul
- li
- dl
- dt
- dd
- figure
- figcaption
- div
- a
- em
- strong
- small
- s
- cite
- q
- dfn
- abbr
- ruby
- rt
- rp
- data
- time
- code
- var
- samp
- kbd
- sub
- sup
- i
- b
- u
- mark
- bdi
- bdo
- span
- br
- wbr
- ins
- del
- img
- iframe
- embed
- object
- param
- video
- audio
- source
- track
- map
- area
- table
- caption
- colgroup
- col
- tbody
- thead
- tfoot
- tr
- td
- th
- form
- label
- input
- button
- select
- datalist
- optgroup
- option
- textarea
- output
- progress
- meter
- fieldset
- legend
- details
- summary
- dialog
- script
- noscript
- template
- canvas
- svg
- math

functions:
- 'document'
- 'window'
- 'alert'
- 'getElementById'
- 'querySelector'
- 'addEventListener'
- 'removeEventListener'
- 'createElement'
- 'appendChild'
- 'setAttribute'
- 'getAttribute'
- 'removeAttribute'
- 'classList'
- 'innerHTML'
- 'innerText'
- 'style'
- 'parentElement'
- 'firstChild'
- 'lastChild'
- 'nextSibling'
- 'previousSibling'
- 'insertBefore'
- 'replaceChild'
- 'removeChild'
- 'cloneNode'
- 'append'

operators:
- '='
- '/'

symbols:
- '/>'
- '='

singlecomments:
- '<!--'

singlecommentslen:
- '4'

strings:
- "\""
- "'"
- "`"
Loading

0 comments on commit 4e6b788

Please sign in to comment.