Message: 1
Date: Tue, 5 May 2015 15:42:08 +0300
From: "Oleg A. Anisimov" <yoda.jedy.kni...@gmail.com>


А если так?

$(*date* +%Y-%m-%d)


Oleg,

$(*date* +%Y-%m-%d) не работает.
$(1:date +%Y-%m-%d) работает.
Не работало потому что я вставил не в секцию Global, а в D - date.


Сделал:
$(1:date  +%d.%m.%Y\ %H:%M:%S)

Секция Global
Ctrl+F5

РАБОТАЕТ!!! По Ctrl+F5 ! Урра! Спасибо огромное всем за помощь! Очень удобно!

Михаил

Вот, нашел причину неработы через About модуля Фрагменты текста в Настройки 
Gedit - Расширения:


Apps/Gedit/Plugins/Snippets - GNOME Wiki!
https://wiki.gnome.org/Apps/Gedit/Plugins/Snippets
Using snippets

Install the plugin. Menu: Tools -> Manage Snippets. A dialog will appear and you can start add snippets. Select a 'Language' (or Global for global snippets). Start adding snippets.

Overview

The idea is to allow users to create little tags that expand to a snippet of text. When the tag is entered in the Gedit view and <tab> is pressed, it gets expanded to the snippet. The user can specify insertion points in the snippet so that when <tab> is pressed again, the cursor moves to the next insertion position. It's very basic and a bit TM alike (though it probably will need some extra features)

Using snippets

Install the plugin. Menu: Tools -> Manage Snippets. A dialog will appear and you can start add snippets. Select a 'Language' (or Global for global snippets). Start adding snippets.

Syntax

There are six different types of placeholders which can be used to specify 'action-areas' in the snippet.
...


5 мая 2015 г., 12:52 пользователь RB <radio...@mtu-net.ru> написал:

Добрый день!

Подскажите, пожалуйста, работающий способ вставить в редакторе Gedit в
текст текущую дату и время клавиатурным сочетанием.
Есть способ через Правка - Вставить дату и время (соответвующий модуль).

Что прописать в сниппете?
Искал, нашел:

ubuntu - How do you create a date snippet in gedit? - Stack Overflow

http://stackoverflow.com/questions/7176273/how-do-you-create-a-date-snippet-in-gedit
  here is a snippet using a shell command (on Unix):

$(1:date +%Y-%m-%d)


Но он у меня не заработал.

Есть решение?
Спасибо!

Михаил


--
ubuntu-ru mailing list
ubuntu-ru@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru





--
ubuntu-ru mailing list
ubuntu-ru@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru

Дати відповідь електронним листом