Plugin Directory

Changeset 2982085


Ignore:
Timestamp:
10/21/2023 07:01:53 PM (17 months ago)
Author:
firmcatalyst
Message:

Codemirror now has the search ability

Location:
fcp-first-screen-css/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • fcp-first-screen-css/trunk/assets/codemirror/init.js

    r2973720 r2982085  
    1717            inputStyle: 'contenteditable',
    1818            lineWrapping: true,
     19            extraKeys: {"Ctrl-F": "findPersistent", "Ctrl-I": "jumpToLine"},
    1920        });
    2021
  • fcp-first-screen-css/trunk/assets/style.css

    r2973591 r2982085  
    1313    width:100%;
    1414}
    15 [id^=first-screen-css] p {
     15[id^=first-screen-css] p, [id^=first-screen-css] ul {
    1616    margin:30px 0 10px;
    1717}
    1818[id^=first-screen-css] p + p {
    1919    margin-top:10px;
     20}
     21
     22[id^=first-screen-css] ul.hints,
     23[id^=first-screen-css] ul.hints ul {
     24    list-style: none;
     25    padding: 0;
     26}
     27[id^=first-screen-css] ul.hints ul {
     28    margin: 0 0 15px 20px;
     29}
     30[id^=first-screen-css] ul.hints li {
     31    list-style: none;
     32    margin: 5px 0 0 0;
     33    padding: 0;
    2034}
    2135
  • fcp-first-screen-css/trunk/first-screen.php

    r2973720 r2982085  
    33Plugin Name: First Screen CSS & Settings
    44Description: This is a professional tool to manipulate enqueued styles and scripts on your website and add custom CSS to first screen and not first screen optionally. Use it to improve your Core Web Vitals score or just add custom styling.
    5 Version: 1.6.1
     5Version: 1.6.2
    66Requires at least: 5.8
    77Tested up to: 6.3
     
    1616defined( 'ABSPATH' ) || exit;
    1717
    18 define( 'FCPFSC_DEV', false );
     18define( 'FCPFSC_DEV', true );
    1919define( 'FCPFSC_VER', get_file_data( __FILE__, [ 'ver' => 'Version' ] )[ 'ver' ] . ( FCPFSC_DEV ? time() : '' ) );
    2020
     
    6565}
    6666
    67 
    68 // ++add the option to switch to inline
    69 // ++add the option to defer loading
    70 // ++autopick the names by url or the instruction how to
    71 // ++add the @bigger height@ button and save new height in local storage or user settings?
     67// ++first field placeholder make more obvious
    7268// ++switch selects to checkboxes or multiples
    7369// ++maybe limit the id-exclude to the fitting post types
    7470// ++don't show rest meta box if the storing dir is absent or is not writable or/and the permission error
    7571// ++get the list of css to unload with jQuery.html() && regexp, or ?query in url to print loaded scripts
    76 // ++list of styles to defer like with deregister?
  • fcp-first-screen-css/trunk/inc/admin/main.php

    r2973720 r2982085  
    1616add_action( 'init', function() {
    1717    $shorter = [
    18         'name' => 'First Screen CSS settings',
     18        'name' => 'First Screen CSS & Settings',
    1919        'plural' => 'First Screen CSS',
    2020        'public' => false,
  • fcp-first-screen-css/trunk/inc/admin/meta-decor.php

    r2973591 r2982085  
    5454    wp_enqueue_script( $cm.'-formatting', FCPFSC_URL . 'assets/codemirror/util/formatting.js', [$cm], '2.38+' );
    5555
     56    // comfortable search
     57    wp_enqueue_style( $cm.'-addon-dialog', FCPFSC_URL . 'assets/codemirror/addon/dialog/dialog.css', [], FCPFSC_CM_VER );
     58    wp_enqueue_style( $cm.'-addon-matchsonscrollbar', FCPFSC_URL . 'assets/codemirror/addon/search/matchesonscrollbar.css', [], FCPFSC_CM_VER );
     59
     60    wp_enqueue_script( $cm.'-addon-dialog', FCPFSC_URL . 'assets/codemirror/addon/dialog/dialog.js', [$cm], FCPFSC_CM_VER );
     61    wp_enqueue_script( $cm.'-addon-searchcursor', FCPFSC_URL . 'assets/codemirror/addon/search/searchcursor.js', [$cm], FCPFSC_CM_VER );
     62    wp_enqueue_script( $cm.'-addon-search', FCPFSC_URL . 'assets/codemirror/addon/search/search.js', [$cm], FCPFSC_CM_VER );
     63    wp_enqueue_script( $cm.'-addon-annotatescrollbar', FCPFSC_URL . 'assets/codemirror/addon/scroll/annotatescrollbar.js', [$cm], FCPFSC_CM_VER );
     64    wp_enqueue_script( $cm.'-addon-matchesonscrollbar', FCPFSC_URL . 'assets/codemirror/addon/search/matchesonscrollbar.js', [$cm], FCPFSC_CM_VER );
     65    wp_enqueue_script( $cm.'-addon-jump-to-line', FCPFSC_URL . 'assets/codemirror/addon/search/jump-to-line.js', [$cm], FCPFSC_CM_VER );
     66
     67
    5668    // codemirror init
    5769    wp_enqueue_script( $cm.'-init', FCPFSC_URL . '/assets/codemirror/init.js', [$cm], FCPFSC_VER  );
  • fcp-first-screen-css/trunk/inc/admin/meta-print.php

    r2973591 r2982085  
    210210console.log( 'The list of linked Scripts:'+"\n" + jss.join( ', ' ) );</pre></code>
    211211
     212    <p><strong>HotKeys for the Editor</strong></p>
     213    <ul class="hints">
     214        <li><code>Ctrl + F</code> - search
     215            <ul>
     216                <li><code>Enter</code> - search next</li>
     217                <li><code>Shift + Enter</code> - search previous</li>
     218            </ul>
     219        </li>
     220        <li><code>Shift + Ctrl + F</code> - search and replace interface</li>
     221        <li><code>Ctrl + I</code> - jump to line by number</li>
     222        <li><strong><code>Esc</code></strong> - cancel current command to start a new one</li>
     223    </ul>
    212224    <?php
    213225}
  • fcp-first-screen-css/trunk/readme.txt

    r2973720 r2982085  
    55Tested up to: 6.3
    66Requires PHP: 7.4
    7 Stable tag: 1.6.1
     7Stable tag: 1.6.2
    88Author: Vadim Volkov, Firmcatalyst
    99Author URI: https://firmcatalyst.com
Note: See TracChangeset for help on using the changeset viewer.